OLD | NEW |
---|---|
(Empty) | |
1 <html> | |
2 <head> | |
3 <script> | |
4 window.onload = function () { | |
5 if (window.testRunner) { | |
6 testRunner.dumpAsText(); | |
7 testRunner.waitUntilDone(); | |
8 } | |
9 var i = document.createElement('iframe'); | |
10 document.body.appendChild(i); | |
11 i.contentWindow.onunload = function () { | |
12 i.contentWindow.location.hash = '#hash'; | |
13 } | |
14 setTimeout(function () { | |
15 i.contentWindow.location.assign('about:blank'); | |
16 setTimeout(function () { | |
17 if (window.testRunner) { | |
18 if (!i.contentWindow.location.hash && i.contentWindow.location.h ref == 'about:blank') { | |
19 document.writeln("TEST PASSED"); | |
dcheng
2016/08/25 18:51:40
I think we have a pretty strong preference to writ
| |
20 } | |
21 testRunner.notifyDone(); | |
22 } | |
23 }, 100); | |
24 }, 100); | |
25 } | |
26 </script> | |
27 </head> | |
28 <body> | |
29 This test tests that a hash navigation in the unload handler will not block the initial navigation. | |
30 </body> | |
31 </html> | |
OLD | NEW |