Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / outdent-inline-list.html
blob5209ee95b15e788587f129c0164eeb99eff97d37
1 <html>
2 <body contenteditable="true">
3 <br>
4 <ol><li id="test1" style="display: inline">one</li><li>two</li><li>three</li></ol>
5 <ul><li id="test2" style="display: inline">one</li><li>two</li><li>three</li></ul>
6 <p id="console"></p>
7 <script>
8 if (window.testRunner)
9 testRunner.dumpAsText();
11 function log(message) {
12 var console = document.getElementById("console");
13 var text = document.createTextNode(message);
14 console.appendChild(text);
17 var s = window.getSelection();
18 var p = document.getElementById("test1");
19 s.collapse(p, 0);
20 document.execCommand("Outdent", false, 0);
21 log("Test1 passed: no crash ");
22 var p = document.getElementById("test2");
23 s.collapse(p, 0);
24 document.execCommand("Outdent", false, 0);
25 log("Test2 passed: no crash");
27 </script>
28 </body>
29 </html>