www

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

commit 198bd70b59f8ceacb1bbc048f7b8a46e74709c1f
parent 909b4b31c80dc83fa58c74a1f3e6d692cf4f399f
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed,  5 Jul 2017 09:15:12 -0400

Make 909b4b31c80 apply to search translators too, and fix tests

Addresses https://github.com/zotero/translators/issues/1353

Diffstat:
Mchrome/content/zotero/xpcom/translation/translate.js | 2+-
Mtest/tests/translateTest.js | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js @@ -82,7 +82,7 @@ Zotero.Translate.Sandbox = { */ _itemDone: function (translate, item) { // https://github.com/zotero/translators/issues/1353 - var asyncTranslator = translate instanceof Zotero.Translate.Import + var asyncTranslator = !(translate instanceof Zotero.Translate.Web) && translate.translator[0].lastUpdated > '2017-07-05'; var run = function (resolve) { diff --git a/test/tests/translateTest.js b/test/tests/translateTest.js @@ -850,7 +850,7 @@ describe("Zotero.Translate", function() { + " });" + "}", { - minVersion: "5.0" + lastUpdated: "2017-07-05 00:00:00" } )); var e = yield getPromiseError(translation.translate()); @@ -906,7 +906,7 @@ describe("Zotero.Translate", function() { + " });" + "}", { - minVersion: "5.0" + lastUpdated: "2017-07-05 00:00:00" } )); translation.setSearch({ itemType: "journalArticle", DOI: "10.111/Test"});