Add array for debugging specific translators
This commit is contained in:
parent
1266c9f1e6
commit
06472a9d3c
1 changed files with 7 additions and 3 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue