diff --git a/chrome/content/zotero/tools/testTranslators/translatorTester.js b/chrome/content/zotero/tools/testTranslators/translatorTester.js index daae11b92..8c5a9043c 100644 --- a/chrome/content/zotero/tools/testTranslators/translatorTester.js +++ b/chrome/content/zotero/tools/testTranslators/translatorTester.js @@ -23,7 +23,7 @@ ***** END LICENSE BLOCK ***** */ -const Zotero_TranslatorTester_IGNORE_FIELDS = ["complete", "accessDate", "checkFields"]; +var Zotero_TranslatorTester_IGNORE_FIELDS = ["complete", "accessDate", "checkFields"]; /** * A tool to run unit tests for a given translator @@ -66,7 +66,7 @@ Zotero_TranslatorTester = function(translator, type, debug) { Zotero.logError(e); } - for(var i in testObject) { + for(var i=0, n=testObject.length; i