Add Zotero.test, which is true during tests

(Zotero.automatedTest is only true in Travis)
This commit is contained in:
Dan Stillman 2016-11-13 04:54:57 -05:00
parent 4082ff9e8c
commit cfe76a6f83
3 changed files with 5 additions and 2 deletions

View file

@ -483,6 +483,9 @@ ZoteroCommandLineHandler.prototype = {
}
}
if (cmdLine.handleFlag("ZoteroTest", false)) {
zInitOptions.test = true;
}
if (cmdLine.handleFlag("ZoteroAutomatedTest", false)) {
zInitOptions.automatedTest = true;
}