blob: 60e768bef335fc4e39f0d8b041c83e60e84a66ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<!DOCTYPE html>
<html>
<body><div><script>
if (!window.testRunner)
document.write("This test requires GCController.");
else {
testRunner.dumpAsText();
testRunner.waitUntilDone();
function crash() {
document.open();
document.write("PASS. WebKit didn't crash.");
document.close();
GCController.collect();
setTimeout("testRunner.notifyDone()", 0);
}
setTimeout(function () {
document.addEventListener('DOMNodeInsertedIntoDocument', function () { crash(); }, true);
document.addEventListener('DOMSubtreeModified', function () { /* noop */ }, false);
document.body = document.createElement('body');
}, 0);
}
</script>
</body>
</html>
|