Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / delete-key-crash.html
blob3da10966b377022e382733afcf1661659d020d1e
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <div contenteditable id="div"><div>He</div></div>
5 <script>
6 if (window.testRunner)
7 window.testRunner.dumpAsText();
9 var count = 0;
10 div.addEventListener("DOMSubtreeModified", function () {
11 count++;
12 if (count == 2) {
13 div.contenteditable = false;
14 document.body.removeChild(div);
16 });
18 document.getSelection().collapse(div.firstChild.firstChild, 2)
19 if (window.eventSender) {
20 eventSender.keyDown('backspace');
21 eventSender.keyDown('backspace');
23 document.body.innerText = "PASS if not crashed";
24 </script>
25 </body>
26 </html>