OLD | NEW |
1 <body> | 1 <body> |
2 <script> | 2 <script> |
3 if (window.testRunner) { | 3 if (window.testRunner) { |
4 testRunner.dumpAsText(); | 4 testRunner.dumpAsText(); |
5 testRunner.waitUntilDone(); | 5 testRunner.waitUntilDone(); |
6 } | 6 } |
7 | 7 |
8 var a=document.createElement("iframe"); | 8 var a=document.createElement("iframe"); |
9 a.src="javascript:''"; | 9 a.src="javascript:''"; |
10 document.body.appendChild(a); | 10 document.body.appendChild(a); |
11 a.contentWindow.location.replace('resources/back-to-javascript-url-iframe-iframe
.html') | 11 setTimeout(function() { |
| 12 a.contentWindow.location.replace('resources/back-to-javascript-url-iframe-if
rame.html') |
| 13 }, 0); |
12 | 14 |
13 function test() { | 15 function test() { |
14 if (sessionStorage.getItem("javascript-url-iframe") == null) { | 16 if (sessionStorage.getItem("javascript-url-iframe") == null) { |
15 sessionStorage.setItem("javascript-url-iframe", "1"); | 17 sessionStorage.setItem("javascript-url-iframe", "1"); |
16 location.href = "back.html"; | 18 location.href = "back.html"; |
17 } else { | 19 } else { |
18 sessionStorage.removeItem("javascript-url-iframe"); | 20 sessionStorage.removeItem("javascript-url-iframe"); |
19 if (window.testRunner) | 21 if (window.testRunner) |
20 testRunner.notifyDone(); | 22 testRunner.notifyDone(); |
21 } | 23 } |
22 } | 24 } |
23 </script> | 25 </script> |
24 </body> | 26 </body> |
25 | 27 |
OLD | NEW |