OLD | NEW |
1 <html> | 1 <html> |
2 <object data="resources/subframe-load-crash.svg" id="root" onload="runTest()"></
object> | 2 <object data="resources/subframe-load-crash.svg" id="root" onload="runTest()"></
object> |
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 function runTest() { | 8 function runTest() { |
9 root = document.getElementById('root').contentDocument; | 9 root = document.getElementById('root').contentDocument; |
10 root.addEventListener('load', function() { document.open(); document.write("
PASS"); document.close(); }, 1); | 10 root.addEventListener('load', function() { |
| 11 document.open(); |
| 12 document.write("PASS"); |
| 13 document.close(); |
| 14 if (window.testRunner) { |
| 15 testRunner.notifyDone(); |
| 16 }}, 1); |
11 setTimeout(function() { | 17 setTimeout(function() { |
12 root.getElementById('test').appendChild(document.createElement('iframe')
); | 18 root.getElementById('test').appendChild(document.createElement('iframe')
); |
13 if (window.testRunner) | |
14 testRunner.notifyDone(); | |
15 }, 0); | 19 }, 0); |
16 } | 20 } |
17 </script> | 21 </script> |
18 </html> | 22 </html> |
OLD | NEW |