|
1 function test() { |
|
2 waitForExplicitFinish(); |
|
3 |
|
4 let testPath = getRootDirectory(gTestPath); |
|
5 |
|
6 let tab = gBrowser.addTab(testPath + "file_bug550565_popup.html"); |
|
7 |
|
8 tab.linkedBrowser.addEventListener("DOMContentLoaded", function() { |
|
9 tab.linkedBrowser.removeEventListener("DOMContentLoaded", arguments.callee, true); |
|
10 |
|
11 let expectedIcon = testPath + "file_bug550565_favicon.ico"; |
|
12 |
|
13 is(gBrowser.getIcon(tab), expectedIcon, "Correct icon before pushState."); |
|
14 tab.linkedBrowser.contentWindow.history.pushState("page2", "page2", "page2"); |
|
15 is(gBrowser.getIcon(tab), expectedIcon, "Correct icon after pushState."); |
|
16 |
|
17 gBrowser.removeTab(tab); |
|
18 |
|
19 finish(); |
|
20 }, true); |
|
21 } |