commit 4e015ecbe9a12fc01b7b125738b5d559ed02dd52
parent 4fd978905c71fa167ec0a5c81b65bbb639e60ed6
Author: Simon Kornblith <simon@simonster.com>
Date: Thu, 19 Jul 2012 13:18:35 -0400
Another attempt at getting tests working for translation via server
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/content/zotero/tools/testTranslators/translatorTester.js b/chrome/content/zotero/tools/testTranslators/translatorTester.js
@@ -452,7 +452,7 @@ Zotero_TranslatorTester.prototype._runTestTranslate = function(translate, transl
if(!translators.length) {
testDoneCallback(this, test, "failed", "Detection failed");
return;
- } else if(this.type === "web" && translators[0].itemType !== "server"
+ } else if(this.type === "web" && translators[0].itemType !== Zotero.Translator.RUN_MODE_ZOTERO_SERVER
&& (translators[0].itemType !== "multiple" && test.items.length > 1 ||
test.items.length === 1 && translators[0].itemType !== test.items[0].itemType)) {
// this handles "items":"multiple" too, since the string has length 8