Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / block / layer-not-removed-from-parent-crash.html
blob83e97b3f822c31f5d5d9d4e22e57c5228328865b
1 <!DOCTYPE html>
2 <html>
3 <body style='-webkit-columns: 1'>
5 <style>
6 .class1 { -webkit-column-span: all; }
7 </style><script>
8 if (window.testRunner)
9 testRunner.dumpAsText();
10 function crash() {
11 test1 = document.createElementNS("http://www.w3.org/1999/xhtml", "article");
12 document.body.appendChild(test1);
13 test1.appendChild(document.createTextNode('A'));
14 test1.setAttribute("class", "class1");
15 test2 = document.createElementNS("http://www.w3.org/1999/xhtml", "article");
16 document.body.appendChild(test2);
17 test2.appendChild(document.createTextNode('A'));
18 test2.setAttribute("class", "class1");
19 document.body.offsetTop;
20 document.designMode = "on";
21 document.execCommand("InsertHTML", false, "No crash!")
22 document.execCommand("SelectAll", false)
23 document.execCommand("InsertHTML", false, "There should be an empty line between these two paragraphs.<span><div></div></span><div>This paragraph and the empty line should have be in their own divs with a red border.")
24 document.execCommand("SelectAll", false)
25 document.execCommand("InsertHTML", false, "There should be an empty line between these two paragraphs.<span><div></div></span><div>This paragraph and the empty line should have be in their own divs with a red border.")
26 document.body.offsetTop;
27 document.body.innerHTML = "PASS. WebKit didn't crash.";
29 document.addEventListener("DOMContentLoaded", crash, false);
30 </script>
31 </body>
32 </html>