Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / remove-list-from-range-selection.html
bloba9b9e11f70f7124c1deff49ae9f074b2b4b4bc08
1 <script>
2 if (window.testRunner)
3 testRunner.dumpEditingCallbacks();
4 </script>
5 <p>This tests Insert{Un}OrderedList on a range selection that is entirely within one list.</p>
6 <div id="test" contenteditable="true"><ol><li><span id="start">None of the</span></li><li>selected content</li><li>should be</li><li><span id="end">in a list.</span></li></ol><ol><li>This should be in a list and should not be selected.</li></ol></div>
7 <script>
8 var s = window.getSelection();
9 var start = document.getElementById("start").firstChild;
10 var end = document.getElementById("end").firstChild;
11 s.setBaseAndExtent(start, 2, end, 2);
13 document.execCommand("InsertOrderedList", false, "foo");
14 </script>