upload tizen1.0 source
[framework/web/webkit-efl.git] / LayoutTests / editing / execCommand / 5432254-2.html
1 <p>This tests for a deletion bug.  The paragraph inside the table should be in a list, and the test shouldn't hang.</p>
2 <div id="div" contenteditable="true"><div><table id="table" border="1"><tr><td id="td">foo</td></tr></table></div>
3
4 <br id="br"></div>
5 <p id="console"></p>
6
7 <script>
8
9 if (window.layoutTestController)
10     layoutTestController.dumpAsText();
11
12 function log(message) {
13     var console = document.getElementById("console");
14     var text = document.createTextNode(message);
15     console.appendChild(text);
16 }
17
18 td = document.getElementById("td");
19 br = document.getElementById("br");
20 s = window.getSelection();
21 s.setBaseAndExtent(td, 0, br, 0);
22 document.execCommand("InsertUnorderedList");
23
24 log(document.getElementById('div').innerHTML);
25
26 </script>
27
28 PASS