Skip to content

Commit

Permalink
Add alternative to padStart for test in Fx45
Browse files Browse the repository at this point in the history
  • Loading branch information
dstillman committed Jun 1, 2017
1 parent 53842ad commit 898a1dc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/tests/syncRunnerTest.js
Expand Up @@ -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');
Expand Down

0 comments on commit 898a1dc

Please sign in to comment.