Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / remove-body-during-body-replacement2.html
blob526510f5f1938e43cea9b530e0882de221104f30
1 <!DOCTYPE html>
2 <html>
3 <body><div><script>
5 if (!window.testRunner)
6 document.write("This test requires GCController.");
7 else {
8 testRunner.dumpAsText();
9 testRunner.waitUntilDone();
11 function crash() {
12 document.open();
13 document.write("PASS. WebKit didn't crash.");
14 document.close();
15 GCController.collect();
16 setTimeout("testRunner.notifyDone()", 0);
19 setTimeout(function () {
20 document.addEventListener('DOMFocusOut', function () { crash(); }, true);
21 document.addEventListener('DOMSubtreeModified', function () { /* noop */ }, false);
22 document.designMode = "on";
23 document.execCommand("SelectAll");
24 document.body.outerText = "ABC";
25 }, 0);
28 </script>
29 </body>
30 </html>