2 // Test passes if it does not crash.
3 // Note: this test is located under Layouttests/http in order to load an external
4 // document (svg-tref.svg) and modify it without hitting security restrictions.
5 if (window
.testRunner
) {
6 testRunner
.waitUntilDone();
7 testRunner
.dumpAsText();
11 q
= document
.getElementById('root').contentDocument
;
12 var z
= document
.lastChild
;
14 e
= document
.importNode( q
.firstChild
, true );
16 r
= document
.createRange();
17 r
.surroundContents( e
);
19 document
.write("If this text is visible and the test did not crash, this test passes");
21 if (window
.testRunner
)
22 testRunner
.notifyDone();
25 <object data=
"http://127.0.0.1:8000/svg/resources/svg-tref.svg" id=
"root" onload=
"crash()"/>