| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script> | 3 <script> |
| 4 var frames = 2; | 4 var frames = 2; |
| 5 if (window.testRunner) { | 5 function runTest() |
| 6 » testRunner.dumpAsText(); | 6 { |
| 7 » testRunner.dumpChildFramesAsText(); | 7 if (window.testRunner) { |
| 8 » testRunner.waitUntilDone(); | 8 testRunner.dumpAsText(); |
| 9 } | 9 testRunner.dumpChildFramesAsText(); |
| 10 window.onmessage = function(message) { | 10 testRunner.waitUntilDone(); |
| 11 » --frames; | 11 } |
| 12 » if (frames <= 0 && window.testRunner) | 12 window.onmessage = function(message) { |
| 13 » » testRunner.notifyDone(); | 13 --frames; |
| 14 if (frames <= 0 && window.testRunner) |
| 15 testRunner.notifyDone(); |
| 16 } |
| 17 document.getElementById('frame1').src = "http://localhost:8000/security/reso
urces/cross-origin-iframe-for-appcache-allowed.html"; |
| 18 document.getElementById('frame2').src = "http://127.0.0.1:8000/security/reso
urces/cross-origin-iframe-for-appcache-allowed.html"; |
| 14 } | 19 } |
| 15 </script> | 20 </script> |
| 16 </head> | 21 </head> |
| 17 <body> | 22 <body onload="runTest()"> |
| 18 <p>This iframe should have a cache:</p> | 23 <p>This iframe should have a cache:</p> |
| 19 <iframe src="http://localhost:8000/security/resources/cross-origin-iframe-for-ap
pcache-allowed.html"></iframe> | 24 <iframe id="frame1"></iframe> |
| 20 <p>This iframe should have a cache:</p> | 25 <p>This iframe should have a cache:</p> |
| 21 <iframe src="http://127.0.0.1:8000/security/resources/cross-origin-iframe-for-ap
pcache-allowed.html"></iframe> | 26 <iframe id="frame2"></iframe> |
| 22 </body> | 27 </body> |
| 23 </html> | 28 </html> |
| OLD | NEW |