Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / 5207369.html
blob749dd75455946e13948444e83e914833badae189
1 <p>This tests for a crash when trying to switch the list type of an inner list at the end. You shouldn't get a crash. This test used to flatten the list but this behavior was correct to match Firefox and MSIE in the bug 43166.</p>
2 <div id="div" contenteditable="true"><ol><li>One</li><li>Two</li><ul><li>Three</li><li>Four</li></div>
3 <p id="console"></p>
5 <script>
7 if (window.testRunner)
8 testRunner.dumpAsText();
10 function log(message) {
11 var console = document.getElementById("console");
12 var text = document.createTextNode(message);
13 console.appendChild(text);
16 var div = document.getElementById("div");
17 div.focus();
18 document.execCommand("SelectAll");
19 document.execCommand("InsertUnorderedList");
21 log(div.innerHTML);
23 </script>
25 PASS