mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
24 lines
717 B
JavaScript
24 lines
717 B
JavaScript
/* Any copyright is dedicated to the Public Domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
function runTests() {
|
|
yield setLinks("0,1,2,3,4,5,6,7,8");
|
|
setPinnedLinks("");
|
|
|
|
yield addNewTabPageTab();
|
|
checkGrid("0,1,2,3,4,5,6,7,8");
|
|
|
|
let cell = getCell(0).node;
|
|
|
|
sendDragEvent("drop", cell, "http://example99.com/\nblank");
|
|
is(NewTabUtils.pinnedLinks.links[0].url, "http://example99.com/",
|
|
"first cell is pinned and contains the dropped site");
|
|
|
|
yield whenPagesUpdated();
|
|
checkGrid("99p,0,1,2,3,4,5,6,7");
|
|
|
|
sendDragEvent("drop", cell, "");
|
|
is(NewTabUtils.pinnedLinks.links[0].url, "http://example99.com/",
|
|
"first cell is still pinned with the site we dropped before");
|
|
}
|