| Index: LayoutTests/editing/execCommand/selection-after-switch-type-of-listitem.html
|
| diff --git a/LayoutTests/editing/execCommand/selection-after-switch-type-of-listitem.html b/LayoutTests/editing/execCommand/selection-after-switch-type-of-listitem.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1f936c9c2fbe41c6a07db33d49ae7ad1c82d2606
|
| --- /dev/null
|
| +++ b/LayoutTests/editing/execCommand/selection-after-switch-type-of-listitem.html
|
| @@ -0,0 +1,18 @@
|
| +<script src="../../resources/dump-as-markup.js"></script>
|
| +<div id="test" contenteditable>
|
| +<ul>
|
| + <li id="first">ABC</li>
|
| + <li id="second">DEF</li>
|
| +</ul>
|
| +</div>
|
| +<script>
|
| +var selection = window.getSelection();
|
| +var range = document.createRange();
|
| +range.setStart(document.getElementById('second').firstChild, 0);
|
| +range.setEnd(document.getElementById('second').firstChild, 3);
|
| +selection.addRange(range);
|
| +document.execCommand('InsertOrderedList');
|
| +document.execCommand('InsertUnOrderedList');
|
| +Markup.description("This tests verifies that the selection is properly reset after executing the command.");
|
| +Markup.dump('test');
|
| +</script>
|
|
|