From 898a1dc679b40ed4de7d32e197a6995c3c5dff7f Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 1 Jun 2017 16:44:11 -0400 Subject: [PATCH] Add alternative to padStart for test in Fx45 --- test/tests/syncRunnerTest.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/tests/syncRunnerTest.js b/test/tests/syncRunnerTest.js index 4d4b002e5f..25aa0db9c8 100644 --- 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');