Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / 4866671.html
blobadd3a5227954e5d21213a3985d4d508b6bd223aa
1 <p>This tests for a crash when triple-click/deleting the content in a list item that is at the end of the document, when there is a div with -webkit-user-select:none after the list item.</p>
2 <div id="div" contenteditable="true"><ul><li>One</li><li id="start">Two</li><span id="end" style="-webkit-user-select:none"><img src="../resources/abe.png"></span></ul></div>
4 <script>
6 if (window.testRunner)
7 window.testRunner.dumpAsText();
9 var start = document.getElementById("start");
10 var end = document.getElementById("end");
11 var sel = window.getSelection();
12 sel.setBaseAndExtent(start, 0, end, 0);
14 sel.modify("extend", "forward", "paragraph");
16 document.execCommand("Delete");
17 </script>