OLD | NEW |
---|---|
1 <body> | 1 <body> |
2 <script> | 2 <script> |
3 if (window.testRunner) { | 3 if (window.testRunner) { |
4 testRunner.dumpBackForwardList(); | 4 testRunner.dumpBackForwardList(); |
5 testRunner.dumpAsText(); | 5 testRunner.dumpAsText(); |
6 testRunner.waitUntilDone(); | 6 testRunner.waitUntilDone(); |
7 } | 7 } |
8 | 8 |
9 function childLoaded() { | 9 function childLoaded() { |
10 if (window.sessionStorage.getItem("dynamic-iframe") != null) { | 10 if (window.sessionStorage.getItem("dynamic-iframe") != null) { |
11 setTimeout(function() { | 11 setTimeout(function () { |
Nate Chapin
2017/02/03 00:17:38
The changes in this file look accidental?
ananta
2017/02/03 01:35:14
Yes. Reverted
| |
12 location.assign("resources/go-back.html"); | 12 location.assign("resources/go-back.html"); |
13 }, 0); | 13 }, 0); |
14 } else { | 14 } else { |
15 setTimeout(function() { | 15 setTimeout(function () { |
16 if (window.testRunner) | 16 if (window.testRunner) |
17 testRunner.notifyDone(); | 17 testRunner.notifyDone(); |
18 }, 0); | 18 }, 0); |
19 } | 19 } |
20 } | 20 } |
21 | 21 |
22 var i = document.createElement("iframe"); | 22 var i = document.createElement("iframe"); |
23 i.src = "javascript:false"; | 23 i.src = "javascript:false"; |
24 document.body.appendChild(i); | 24 document.body.appendChild(i); |
25 | 25 |
26 if (window.sessionStorage.getItem("dynamic-iframe") == null) { | 26 if (window.sessionStorage.getItem("dynamic-iframe") == null) { |
27 window.sessionStorage.setItem("dynamic-iframe", true); | 27 window.sessionStorage.setItem("dynamic-iframe", true); |
28 i.src = "resources/back-to-dynamic-iframe-iframe.html#FAIL"; | 28 i.src = "resources/back-to-dynamic-iframe-iframe.html#FAIL"; |
29 } else { | 29 } else { |
30 window.sessionStorage.removeItem("dynamic-iframe"); | 30 window.sessionStorage.removeItem("dynamic-iframe"); |
31 i.src = "resources/back-to-dynamic-iframe-iframe.html#PASS"; | 31 i.src = "resources/back-to-dynamic-iframe-iframe.html#PASS"; |
32 } | 32 } |
33 </script> | 33 </script> |
34 </body> | 34 </body> |
OLD | NEW |