Add alternative to padStart for test in Fx45
This commit is contained in:
parent
53842adefc
commit
898a1dc679
1 changed files with 6 additions and 1 deletions
|
@ -1037,7 +1037,12 @@ describe("Zotero.Sync.Runner", function () {
|
|||
win = yield loadZoteroPane();
|
||||
var doc = win.document;
|
||||
|
||||
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');
|
||||
|
|
Loading…
Reference in a new issue