upload tizen1.0 source
[framework/web/webkit-efl.git] / LayoutTests / editing / execCommand / 5207369.html
1 <p>This tests for a crash when trying to switch the list type of an inner list at the end. You shouldn't get a crash. This test used to flatten the list but this behavior was correct to match Firefox and MSIE in the bug 43166.</p>
2 <div id="div" contenteditable="true"><ol><li>One</li><li>Two</li><ul><li>Three</li><li>Four</li></div>
3 <p id="console"></p>
4
5 <script>
6
7 if (window.layoutTestController)
8     layoutTestController.dumpAsText();
9
10 function log(message) {
11     var console = document.getElementById("console");
12     var text = document.createTextNode(message);
13     console.appendChild(text);
14 }
15
16 var div = document.getElementById("div");
17 div.focus();
18 document.execCommand("SelectAll");
19 document.execCommand("InsertUnorderedList");
20
21 log(div.innerHTML);
22
23 </script>
24
25 PASS