upload tizen1.0 source
[framework/web/webkit-efl.git] / LayoutTests / editing / execCommand / 4916583.html
1 <p>This tests for a bug when outdenting an indented list item.  You should see 'foo' and 'bar' each in their own list item below.</p>
2 <div id="div" contenteditable="true"><ul><li>foo</li><ul><li id="li">bar<br></li></ul></ul></div>
3 <p id="console"></p>
4 <script>
5
6 if (window.layoutTestController)
7     layoutTestController.dumpAsText();
8
9 function log(message) {
10     var console = document.getElementById("console");
11     var text = document.createTextNode(message);
12     console.appendChild(text);
13 }
14
15 var li = document.getElementById("li");
16 var sel = window.getSelection();
17
18 sel.setPosition(li, 0);
19 document.execCommand("Outdent");
20
21 log(document.getElementById('div').innerHTML);
22 </script>