Don't continue translating on failure

This commit is contained in:
Simon Kornblith 2012-03-29 20:35:53 -04:00
parent 754836c428
commit be89e3ad17

View file

@ -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;