mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
22 lines
684 B
JavaScript
22 lines
684 B
JavaScript
function test() {
|
|
waitForExplicitFinish();
|
|
|
|
let testPath = getRootDirectory(gTestPath);
|
|
|
|
let tab = gBrowser.addTab(testPath + "file_bug550565_popup.html");
|
|
|
|
tab.linkedBrowser.addEventListener("DOMContentLoaded", function() {
|
|
tab.linkedBrowser.removeEventListener("DOMContentLoaded", arguments.callee, true);
|
|
|
|
let expectedIcon = testPath + "file_bug550565_favicon.ico";
|
|
|
|
is(gBrowser.getIcon(tab), expectedIcon, "Correct icon before pushState.");
|
|
tab.linkedBrowser.contentWindow.history.pushState("page2", "page2", "page2");
|
|
is(gBrowser.getIcon(tab), expectedIcon, "Correct icon after pushState.");
|
|
|
|
gBrowser.removeTab(tab);
|
|
|
|
finish();
|
|
}, true);
|
|
}
|