upload tizen1.0 source
[framework/web/webkit-efl.git] / LayoutTests / editing / execCommand / 4641880-1.html
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>
6
7 <script>
8 if (window.layoutTestController)
9     window.layoutTestController.dumpEditingCallbacks();
10
11 var div = document.getElementById("div");
12 var sel = window.getSelection();
13 sel.setPosition(div, 0);
14 sel.modify("extend", "forward", "line");
15 document.execCommand("InsertUnorderedList");
16 </script>