OLD | NEW |
1 <body> | 1 <body> |
2 This test checks the following case:<br> | 2 This test checks the following case:<br> |
3 * Create an iframe<br> | 3 * Create an iframe<br> |
4 * Set its location to about:blank<br> | 4 * Set its location to about:blank<br> |
5 * In a setTimeout(), navigate to a non-blank page<br> | 5 * In a setTimeout(), navigate to a non-blank page<br> |
6 The iframe navigations should not create new history entries, even though the no
n-blank navigation is after the load (there is only one history entry in the ifr
ame context, and it is about:blank). | 6 The iframe navigations should not create new history entries, even though the no
n-blank navigation is after the load (there is only one history entry in the ifr
ame context, and it is about:blank). |
7 <iframe id="i"></iframe> | 7 <iframe id="i" name="i"></iframe> |
8 <script> | 8 <script> |
9 if (window.testRunner) { | 9 if (window.testRunner) { |
10 testRunner.dumpAsText(); | 10 testRunner.dumpAsText(); |
11 testRunner.waitUntilDone(); | 11 testRunner.waitUntilDone(); |
12 testRunner.dumpBackForwardList(); | 12 testRunner.dumpBackForwardList(); |
13 } | 13 } |
14 | 14 |
15 var i = document.getElementById("i"); | 15 var i = document.getElementById("i"); |
16 i.src = "about:blank"; | 16 i.src = "about:blank"; |
17 setTimeout(function() { | 17 setTimeout(function() { |
18 i.src = "resources/pass-and-notify-done.html" | 18 i.src = "resources/pass-and-notify-done.html" |
19 }, 0); | 19 }, 0); |
20 </script> | 20 </script> |
21 </body> | 21 </body> |
OLD | NEW |