upload tizen1.0 source
[framework/web/webkit-efl.git] / LayoutTests / editing / execCommand / remove-list-1.html
1 <script>
2 if (window.layoutTestController) {
3     layoutTestController.dumpEditingCallbacks();
4     layoutTestController.dumpAsText();
5 }
6 </script>
7 <p>This tests de-listing content.</p>
8 <div id="div" contenteditable="true"><ol><li></li><li>There should be a single BR above this line and no OL or LI.</li></ol></div>
9 <p id="console"></p>
10
11 <script>
12
13 function log(message) {
14     var console = document.getElementById("console");
15     var text = document.createTextNode(message);
16     console.appendChild(text);
17 }
18
19 var div = document.getElementById("div");
20 var sel = window.getSelection();
21
22 div.focus();
23 document.execCommand("SelectAll");
24 document.execCommand("InsertOrderedList");
25
26 log(div.innerHTML);
27
28 </script>