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 // Disable page cache. | |
8 onunload = function() {}; | |
Nate Chapin
2014/04/02 23:31:17
This shouldn't be necessary, as blink doesn't have
tkent
2014/04/03 00:26:36
Done.
| |
9 | |
10 function runTest() { | |
11 if (sessionStorage.didNav) { | |
12 delete sessionStorage.didNav; | |
13 if (window.testRunner) | |
14 testRunner.notifyDone(); | |
15 } else { | |
16 // Navigate a timeout to make sure we generate a history entry that we | |
17 // can go back to. | |
18 setTimeout(function() {location.href = 'data:text/html,<script>history.b ack();</' + 'script>';}, 0); | |
19 sessionStorage.didNav = true; | |
20 } | |
21 } | |
22 </script> | |
23 </body> | |
OLD | NEW |