Adds Zotero.FeedReader tests

This commit is contained in:
Adomas Venčkauskas 2016-01-12 13:28:15 +00:00 committed by Dan Stillman
parent 2d46e3d59b
commit 8a2dc6e7f2
8 changed files with 775 additions and 464 deletions

View file

@ -7,6 +7,9 @@ var ZoteroUnit = Components.classes["@mozilla.org/commandlinehandler/general-sta
var dump = ZoteroUnit.dump;
// Mocha HTML reporter doesn't show deepEqual diffs, so we change this.
chai.config.truncateThreshold = 0
function quit(failed) {
// Quit with exit status
if(!failed) {

View file

@ -435,6 +435,10 @@ function getTestDataDirectory() {
QueryInterface(Components.interfaces.nsIFileURL).file;
}
function getTestDataItemUrl(path) {
return OS.Path.join("resource://zotero-unit-tests/data", path);
}
/**
* Returns an absolute path to an empty temporary directory
* (i.e., test/tests/data)