OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <body onload="runTest()"> |
| 3 <iframe id="testframe" src="resources/left-right.html" width="100%" height="300p
x" frameborder="0"></iframe> |
| 4 <script> |
| 5 if (window.testRunner) |
| 6 testRunner.waitUntilDone(); |
| 7 |
| 8 function runTest() { |
| 9 if (sessionStorage.didNav) { |
| 10 delete sessionStorage.didNav; |
| 11 if (window.testRunner) |
| 12 testRunner.notifyDone(); |
| 13 } else { |
| 14 // Navigate a timeout to make sure we generate a history entry that we |
| 15 // can go back to. |
| 16 setTimeout(function() {location.href = 'data:text/html,<script>history.b
ack();</' + 'script>';}, 0); |
| 17 sessionStorage.didNav = true; |
| 18 } |
| 19 } |
| 20 </script> |
| 21 </body> |
OLD | NEW |