upload tizen1.0 source
[framework/web/webkit-efl.git] / LayoutTests / editing / execCommand / switch-multiple-list-items.html
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>
7
8 Markup.description('This tests switching the list type of multiple list items at once. WebKit should not crash.');
9
10 var div = document.getElementsByTagName('div')[0];
11 window.getSelection().selectAllChildren(div);
12 document.execCommand('InsertOrderedList', false, null);
13
14 Markup.dump(div, 'One, Two, and Three should all be in a single ol, each followed by a single br.');
15
16 </script>
17 </body>
18 </html>