Editing tests should use testRunner instead of layoutTestController
[WebKit-https.git] / LayoutTests / editing / execCommand / 5575101-1.html
1 <p>This tests for a hang when outdenting a list item within a sublist twice.</p>
2 <div contenteditable="true">
3 <ol>
4     <li>one</li>
5     <li id="insert">two<ol><li id="outdent">three</li><li>four</li></ol></li>
6 </ol>
7 </div>
8
9 <script>
10 if (window.testRunner)
11     window.testRunner.dumpAsText();
12 outdent = document.getElementById("outdent");
13 window.getSelection().setPosition(outdent, 0);
14 document.execCommand("Outdent");
15 document.execCommand("Outdent");
16 </script>