| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <div id="console"></div> | 2 <div id="console"></div> |
| 3 <script> | 3 <script> |
| 4 if (window.testRunner) { | 4 if (window.testRunner) { |
| 5 testRunner.dumpAsText(); | 5 testRunner.dumpAsText(); |
| 6 testRunner.waitUntilDone(); | 6 testRunner.waitUntilDone(); |
| 7 } | 7 } |
| 8 | 8 |
| 9 var iframe = document.body.appendChild(document.createElement("iframe")); | 9 var iframe = document.body.appendChild(document.createElement("iframe")); |
| 10 var o = undefined; | 10 var o = undefined; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 function waitForLoaded() { | 31 function waitForLoaded() { |
| 32 try { frames[0].a; } catch(e) { | 32 try { frames[0].a; } catch(e) { |
| 33 clearInterval(interval); | 33 clearInterval(interval); |
| 34 test(); | 34 test(); |
| 35 } | 35 } |
| 36 } | 36 } |
| 37 | 37 |
| 38 var interval = setInterval(waitForLoaded, 1); | 38 var interval = setInterval(waitForLoaded, 1); |
| 39 iframe.src = "http://localhost:8000/resources/dummy.html"; | 39 iframe.src = "http://localhost:8000/resources/dummy.html"; |
| 40 </script> | 40 </script> |
| OLD | NEW |