commit 06472a9d3c877f60beb608f02f9ec93c661ef355 parent 1266c9f1e61b66035caa6188014c6ab7059fc233 Author: Dan Stillman <dstillman@zotero.org> Date: Wed, 31 Aug 2016 02:52:53 -0400 Add array for debugging specific translators Diffstat:
| M | chrome/content/zotero/tools/testTranslators/translatorTester.js | | | 10 | +++++++--- |
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/chrome/content/zotero/tools/testTranslators/translatorTester.js b/chrome/content/zotero/tools/testTranslators/translatorTester.js @@ -27,6 +27,9 @@ var TEST_RUN_TIMEOUT = 600000; var EXPORTED_SYMBOLS = ["Zotero_TranslatorTesters"]; +// For debugging specific translators by label +var includeTranslators = []; + try { Zotero; } catch(e) { @@ -55,9 +58,10 @@ Zotero_TranslatorTesters = new function() { return function(translators) { try { for(var i=0; i<translators.length; i++) { - if(skipTranslators && !skipTranslators[translators[i].translatorID]) { - testers.push(new Zotero_TranslatorTester(translators[i], type)); - } + if (includeTranslators.length + && !includeTranslators.includes(translators[i].label)) continue; + if (skipTranslators && skipTranslators[translators[i].translatorID]) continue; + testers.push(new Zotero_TranslatorTester(translators[i], type)); }; if(!(--waitingForTranslators)) {