Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / switch-multiple-list-items.html
blobc97d76e78f312f78872b080b17618e0ff897855f
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../../resources/dump-as-markup.js"></script>
5 <div contenteditable="true"><ul><li>One<br></li><li>Two<br></li><li>Three<br></li></ul></div>
6 <script>
8 Markup.description('This tests switching the list type of multiple list items at once. WebKit should not crash.');
10 var div = document.getElementsByTagName('div')[0];
11 window.getSelection().selectAllChildren(div);
12 document.execCommand('InsertOrderedList', false, null);
14 Markup.dump(div, 'One, Two, and Three should all be in a single ol, each followed by a single br.');
16 </script>
17 </body>
18 </html>