| Index: LayoutTests/editing/execCommand/selection-after-insert-list-2.html
|
| diff --git a/LayoutTests/editing/execCommand/selection-after-insert-list-2.html b/LayoutTests/editing/execCommand/selection-after-insert-list-2.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ec8e159893f6a974ec883b75dcbb00ccf4eca752
|
| --- /dev/null
|
| +++ b/LayoutTests/editing/execCommand/selection-after-insert-list-2.html
|
| @@ -0,0 +1,22 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<body>
|
| +<script src="../../resources/dump-as-markup.js"></script>
|
| +<div id="test" contenteditable>
|
| +<p id="startSelection">A</p>
|
| +<p>B</p>
|
| +<p id="endSelection">C</p>
|
| +<p>This should not be selected.</p>
|
| +</div>
|
| +<script>
|
| +var selection = window.getSelection();
|
| +var range = document.createRange();
|
| +range.setStart(document.getElementById('startSelection'), 0);
|
| +range.setEnd(document.getElementById('endSelection'), 1);
|
| +selection.addRange(range);
|
| +document.execCommand('InsertOrderedList');
|
| +Markup.description("This tests verifies that the selection is properly reset after executing the command.");
|
| +Markup.dump('test');
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|