www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit be89e3ad17fa64848f765cfd99bc509c904806d5
parent 754836c4289216bdf7c87fb44dfa99452d78d29e
Author: Simon Kornblith <simon@simonster.com>
Date:   Thu, 29 Mar 2012 20:35:53 -0400

Don't continue translating on failure

Diffstat:
Mchrome/content/zotero/tools/testTranslators/translatorTester.js | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git 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;