| OLD | NEW |
| 1 <body> | 1 <body> |
| 2 We pass if we don't crash under ASAN. | 2 We pass if we don't crash under ASAN. |
| 3 <script> | 3 <script> |
| 4 if (window.testRunner) { | 4 if (window.testRunner) { |
| 5 testRunner.dumpAsText(); | 5 testRunner.dumpAsText(); |
| 6 testRunner.dumpBackForwardList(); | 6 testRunner.dumpBackForwardList(); |
| 7 testRunner.waitUntilDone(); | 7 testRunner.waitUntilDone(); |
| 8 } | 8 } |
| 9 | 9 |
| 10 function sameDocumentSetupDone() { | 10 function sameDocumentSetupDone() { |
| 11 frames[1].location.replace("notify-parent-setup-done.html"); | 11 frames[1].location.replace("notify-parent-setup-done.html"); |
| 12 } | 12 } |
| 13 | 13 |
| 14 function differentDocumentSetupDone() { | 14 function differentDocumentSetupDone() { |
| 15 setTimeout(function() { | 15 setTimeout(function() { |
| 16 // Send a backspace to trigger a back navigation. | 16 // Send a backspace to trigger a back navigation. |
| 17 if (window.eventSender) | 17 if (window.eventSender) |
| 18 eventSender.keyDown('\u0008'); | 18 eventSender.keyDown('Backspace'); |
| 19 }, 0); | 19 }, 0); |
| 20 } | 20 } |
| 21 | 21 |
| 22 function addChild() { | 22 function addChild() { |
| 23 var i = document.createElement("iframe"); | 23 var i = document.createElement("iframe"); |
| 24 i.src = "about:blank"; | 24 i.src = "about:blank"; |
| 25 document.body.appendChild(i); | 25 document.body.appendChild(i); |
| 26 if (window.testRunner) | 26 if (window.testRunner) |
| 27 testRunner.notifyDone(); | 27 testRunner.notifyDone(); |
| 28 } | 28 } |
| 29 </script> | 29 </script> |
| 30 <iframe src="resources/pushState-onload.html"></iframe> | 30 <iframe src="resources/pushState-onload.html"></iframe> |
| 31 <iframe src="resources/blank.txt"></iframe> | 31 <iframe src="resources/blank.txt"></iframe> |
| 32 </body> | 32 </body> |
| OLD | NEW |