blob: e91c0abbfc3584de9117675ba6bace8e01654361 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body><div><script>
if (!window.testRunner)
document.write("This test requires GCController.");
else {
testRunner.dumpAsText();
testRunner.waitUntilDone();
function crash() {
if (document.lastChild.firstChild.firstChild.firstChild) {
document.lastChild.removeChild(document.lastChild.firstChild);
GCController.collect();
setTimeout(function () {
document.body.innerHTML = "PASS. WebKit didn't crash."
testRunner.notifyDone();
}, 0);
}
GCController.collect();
}
setTimeout(function () {
document.addEventListener('DOMNodeInsertedIntoDocument', function () { crash(); }, true);
document.addEventListener('DOMSubtreeModified', function () { /* noop */ }, false);
document.title = 'hello';
}, 0);
}
</script>
</body>
</html>