blob: afa5e7f4cb2889b35b1c03836e81f586e00a4388 [file] [log] [blame]
// 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.
if (window.testRunner) {
function crash() {
q = document.getElementById('root').contentDocument;
var z = document.lastChild;
q.adoptNode( z );
e = document.importNode( q.firstChild, true );
q.adoptNode( e );
r = document.createRange();
r.surroundContents( e ); = 's';
document.write("If this text is visible and the test did not crash, this test passes");
if (window.testRunner)
<object data="" id="root" onload="crash()"/>