blob: fa3ecbcd161cc404eeffaf6ba8dd26b25803f94b [file] [log] [blame]
<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>
<div id="div" contenteditable="true">
This paragraph should be in a list.<br>
This paragraph should not be in a list.</br>
</div>
<script>
if (window.layoutTestController)
window.layoutTestController.dumpEditingCallbacks();
var div = document.getElementById("div");
var sel = window.getSelection();
sel.setPosition(div, 0);
sel.modify("extend", "forward", "line");
document.execCommand("InsertUnorderedList");
</script>