www

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

commit c7700f2b96fec179ed70d760faf5617b9d4917e1
parent a22d996aab0fe17114656d7434d5e44b17fa397a
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue, 22 Nov 2016 19:06:47 -0500

Fix warning in translate test

Diffstat:
Mtest/tests/translateTest.js | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/tests/translateTest.js b/test/tests/translateTest.js @@ -24,7 +24,8 @@ function saveItemsThroughTranslator(translatorType, items) { } else if (translatorType == "import") { translate.setString(""); } - translate.setTranslator(buildDummyTranslator(translatorType == "web" ? 4 : 1, + translate.setTranslator(buildDummyTranslator( + translatorType, "function detectWeb() {}\n"+ "function do"+tyname+"() {\n"+ " var json = JSON.parse('"+JSON.stringify(items).replace(/['\\]/g, "\\$&")+"');\n"+