Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / 4641880-1.html
blobc3222c73f2196cdc9ff0cafdae3887be01e6e699
1 <p>This tests InsertUnorderedList on a selection that ends at the start of a paragraph. Since we don't paint the gap before the paragraph for most selections like this, we don't perform InsertUnorderedList on the paragraph that the selection ends in.</p>
2 <div id="div" contenteditable="true">
3 This paragraph should be in a list.<br>
4 This paragraph should not be in a list.</br>
5 </div>
7 <script>
8 if (window.testRunner)
9 window.testRunner.dumpEditingCallbacks();
11 var div = document.getElementById("div");
12 var sel = window.getSelection();
13 sel.collapse(div, 0);
14 sel.modify("extend", "forward", "line");
15 document.execCommand("InsertUnorderedList");
16 </script>