From be89e3ad17fa64848f765cfd99bc509c904806d5 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Thu, 29 Mar 2012 20:35:53 -0400 Subject: [PATCH] Don't continue translating on failure --- chrome/content/zotero/tools/testTranslators/translatorTester.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chrome/content/zotero/tools/testTranslators/translatorTester.js b/chrome/content/zotero/tools/testTranslators/translatorTester.js index 407ea61abc..dcfd3498f7 100644 --- a/chrome/content/zotero/tools/testTranslators/translatorTester.js +++ b/chrome/content/zotero/tools/testTranslators/translatorTester.js @@ -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;