Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / 5575101-2.html
blobb8c7e29dddd30963243c215dc99ae48e3b5e0fe1
1 <p>This tests for a bug where outdenting a list item twice would incorrectly move it above the list it was outdented from. Below you should see 'two' in order with 'one' and 'three' and it should not be in a list.</p>
2 <div contenteditable="true">
3 <ol>
4 <li>one</li>
5 <li id="insert"><ol><li id="outdent">two</li><li>three</li></ol></li>
6 </ol>
7 </div>
9 <script>
10 if (window.testRunner)
11 window.testRunner.dumpAsText();
12 outdent = document.getElementById("outdent");
13 window.getSelection().collapse(outdent, 0);
14 document.execCommand("Outdent");
15 document.execCommand("Outdent");
16 </script>