2010-03-24 02:22:13 -07:00
|
|
|
function test() {
|
|
|
|
waitForExplicitFinish();
|
|
|
|
|
2010-09-10 10:20:38 -07:00
|
|
|
let testPath = getRootDirectory(gTestPath);
|
2010-03-24 02:22:13 -07:00
|
|
|
|
|
|
|
let tab = gBrowser.addTab(testPath + "file_bug550565_popup.html");
|
|
|
|
|
2011-06-07 07:45:26 -07:00
|
|
|
tab.linkedBrowser.addEventListener("DOMContentLoaded", function() {
|
|
|
|
tab.linkedBrowser.removeEventListener("DOMContentLoaded", arguments.callee, true);
|
|
|
|
|
2010-03-24 02:22:13 -07:00
|
|
|
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);
|
|
|
|
}
|