mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 14:45:29 +00:00
532c2b03e9
--HG-- rename : docshell/test/browser/browser_bug550565.js => browser/base/content/test/browser_bug550565.js rename : docshell/test/browser/file_bug550565_favicon.ico => browser/base/content/test/file_bug550565_favicon.ico rename : docshell/test/browser/file_bug550565_popup.html => browser/base/content/test/file_bug550565_popup.html
20 lines
631 B
JavaScript
20 lines
631 B
JavaScript
function test() {
|
|
waitForExplicitFinish();
|
|
|
|
let testPath = "chrome://mochikit/content/browser/browser/base/content/test/";
|
|
|
|
let tab = gBrowser.addTab(testPath + "file_bug550565_popup.html");
|
|
|
|
tab.linkedBrowser.addEventListener('DOMContentLoaded', function() {
|
|
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);
|
|
}
|