upload tizen1.0 source
[framework/web/webkit-efl.git] / LayoutTests / editing / execCommand / 4916235.html
1 <p>This tests for a crash when performing InsertOrderedList on an unordered list item.  You should see 'foo' and 'bar' each in their own ordered list items.</p>
2 <div id="div" contenteditable="true"><ul><li id="li1">foo</li><li id="li2">bar<br></li></ul></div>
3
4 <script>
5 if (window.layoutTestController)
6     window.layoutTestController.dumpAsText();
7     
8 var li = document.getElementById("li1");
9 var sel = window.getSelection();
10
11 sel.setBaseAndExtent(li, 0, li, li.childNodes.length);
12 document.execCommand("InsertOrderedList");
13
14 li = document.getElementById("li2");
15 sel.setBaseAndExtent(li, 0, li, li.childNodes.length);
16 document.execCommand("InsertOrderedList");
17 </script>