Don't continue translating on failure
This commit is contained in:
parent
754836c428
commit
be89e3ad17
1 changed files with 2 additions and 0 deletions
|
@ -409,9 +409,11 @@ Zotero_TranslatorTester.prototype.runTest = function(test, doc, testDoneCallback
|
|||
if(test.items !== "multiple" && test.items.length <= 1) {
|
||||
testDoneCallback(me, test, "failed", "Zotero.selectItems() called, but only one item defined in test");
|
||||
callback({});
|
||||
return;
|
||||
} else if(selectCalled) {
|
||||
testDoneCallback(me, test, "failed", "Zotero.selectItems() called multiple times");
|
||||
callback({});
|
||||
return;
|
||||
}
|
||||
|
||||
selectCalled = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue