| // Test passes if it does not crash. |
| // Note: this test is located under Layouttests/http in order to load an external |
| // document (svg-tref.svg) and modify it without hitting security restrictions. |
| testRunner.waitUntilDone(); |
| q = document.getElementById('root').contentDocument; |
| var z = document.lastChild; |
| e = document.importNode( q.firstChild, true ); |
| r = document.createRange(); |
| document.write("If this text is visible and the test did not crash, this test passes"); |
| <object data="http://127.0.0.1:8000/svg/resources/svg-tref.svg" id="root" onload="crash()"/> |