blob: 9f7f0d9fd719e29cd7f4e3e7c970f322b7466b55 [file] [log] [blame]
<!DOCTYPE HTML>
<html>
<!-- Test for WK92604 - Passes if no crash occurs and "PASS" is printed. -->
<body id="body">
<svg xmlns="http://www.w3.org/2000/svg">
<line stroke="green" vector-effect="non-scaling-stroke" y2="1"/>
<defs id="defs"></defs>
</svg>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
var body = document.getElementById("body");
var defs = document.getElementById("defs");
document.addEventListener("DOMContentLoaded", doCrash, false);
body.addEventListener("DOMSubtreeModified", function() {
// Prevent infinite loop of modification events.
this.removeEventListener("DOMSubtreeModified", arguments.callee);
document.write("This test passes if no crash occurs and PASS is printed. PASS");
if (window.testRunner)
testRunner.notifyDone();
}, false);
function doCrash() {
body.offsetWidth;
body.innerHTML = "FAIL";
}
</script>
</body>
</html>