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