blob: 326dd988aff7f97d302a527b6c3d392e46129c85 [file] [log] [blame]
<html xmlns="http://www.w3.org/1999/xhtml">
<body></body>
<script>
if (window.testRunner) {
testRunner.waitUntilDone();
testRunner.dumpAsText();
}
function crash() {
document.designMode = "on";
var textNode = document.body.appendChild(document.createTextNode("PASS. WebKit didn't crash."));
var range = document.createRange();
range.setStart(textNode, 0);
document.addEventListener("DOMNodeInserted", function () {
document.body.removeChild(textNode);
textNode = null;
if (window.testRunner) {
GCController.collect();
setTimeout("testRunner.notifyDone()", 0);
}
}, true);
try {
range.insertNode(document.createTextNode(""));
} catch(e) { }
}
window.onload = crash;
</script>
</html>