Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / 4916583.html
blobf682e576f7efe97e1f10bf4bcb59e662cbc3f780
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>
6 if (window.testRunner)
7 testRunner.dumpAsText();
9 function log(message) {
10 var console = document.getElementById("console");
11 var text = document.createTextNode(message);
12 console.appendChild(text);
15 var li = document.getElementById("li");
16 var sel = window.getSelection();
18 sel.collapse(li, 0);
19 document.execCommand("Outdent");
21 log(document.getElementById('div').innerHTML);
22 </script>