commit 898a1dc679b40ed4de7d32e197a6995c3c5dff7f
parent 53842adefc510abc7572407d29708cc751e856ce
Author: Dan Stillman <dstillman@zotero.org>
Date: Thu, 1 Jun 2017 16:44:11 -0400
Add alternative to padStart for test in Fx45
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/test/tests/syncRunnerTest.js b/test/tests/syncRunnerTest.js
@@ -1037,7 +1037,12 @@ describe("Zotero.Sync.Runner", function () {
win = yield loadZoteroPane();
var doc = win.document;
- var text = "".padStart(256, "a");
+ if (Zotero.platformMajorVersion >= 48) {
+ var text = "".padStart(256, "a");
+ }
+ else {
+ var text = Array(256).fill("a").join("");
+ }
var item = yield createDataObject('item', { itemType: 'note', note: text });
setResponse('keyInfo.fullAccess');