OLD | NEW |
1 <script> | 1 <script> |
2 // Test passes if it does not crash. | 2 // Test passes if it does not crash. |
3 // Note: this test is located under Layouttests/http in order to load an externa
l | 3 // Note: this test is located under Layouttests/http in order to load an externa
l |
4 // document and modify it without hitting security restrictions. | 4 // document and modify it without hitting security restrictions. |
5 if (window.testRunner) { | 5 if (window.testRunner) { |
6 testRunner.waitUntilDone(); | 6 testRunner.waitUntilDone(); |
7 testRunner.dumpAsText(); | 7 testRunner.dumpAsText(); |
8 } | 8 } |
9 | 9 |
10 function crash() { | 10 function crash() { |
11 q = document.getElementById('root').contentDocument; | 11 q = document.getElementById('root').contentDocument; |
12 document.write(""); | 12 document.write(""); |
13 q.getElementById('d').id = "maskedGradient"; | 13 q.getElementById('d').id = "maskedGradient"; |
14 document.write("If this text is visible and the test did not crash, this
test passes"); | 14 document.write("If this text is visible and the test did not crash, this
test passes"); |
| 15 document.close(); |
15 if (window.testRunner) | 16 if (window.testRunner) |
16 testRunner.notifyDone(); | 17 testRunner.notifyDone(); |
17 } | 18 } |
18 </script> | 19 </script> |
19 <object data="http://127.0.0.1:8000/svg/resources/svg-use-defs-rect.svg" id="roo
t" onload="crash()"/> | 20 <object data="http://127.0.0.1:8000/svg/resources/svg-use-defs-rect.svg" id="roo
t" onload="crash()"/> |
OLD | NEW |