| Index: third_party/WebKit/LayoutTests/editing/execCommand/insert-list-items-inside-another-list.html
|
| diff --git a/third_party/WebKit/LayoutTests/editing/execCommand/insert-list-items-inside-another-list.html b/third_party/WebKit/LayoutTests/editing/execCommand/insert-list-items-inside-another-list.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..dcb3d5285acba5980d58105daff5ccf887cc9288
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/editing/execCommand/insert-list-items-inside-another-list.html
|
| @@ -0,0 +1,65 @@
|
| +<!doctype html>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| +<script src="../assert_selection.js"></script>
|
| +<script>
|
| +test(() => assert_selection(
|
| + '<div contenteditable><ul><li>|hello</li><li>world</li><li>Blink</li></ul></div>',
|
| + 'InsertOrderedList',
|
| + '<div contenteditable><ol><li>|hello</li></ol><ul><li>world</li><li>Blink</li></ul></div>'),
|
| + 'InsertOrderedList - listify only the 1st list item');
|
| +
|
| +test(() => assert_selection(
|
| + '<div contenteditable><ul><li>hello</li><li>|world</li><li>Blink</li></ul></div>',
|
| + 'InsertOrderedList',
|
| + '<div contenteditable><ul><li>hello</li></ul><ol><li>|world</li></ol><ul><li>Blink</li></ul></div>'),
|
| + 'InsertOrderedList - listify only the 2nd list item');
|
| +
|
| +test(() => assert_selection(
|
| + '<div contenteditable><ul><li>hello</li><li>world</li><li>|Blink</li></ul></div>',
|
| + 'InsertOrderedList',
|
| + '<div contenteditable><ul><li>hello</li><li>world</li></ul><ol><li>|Blink</li></ol></div>'),
|
| + 'InsertOrderedList - listify only the 3nd list item');
|
| +
|
| +test(() => assert_selection(
|
| + '<div contenteditable><ol><li>|hello</li><li>world</li><li>Blink</li></oll></div>',
|
| + 'InsertUnorderedList',
|
| + '<div contenteditable><ul><li>|hello</li></ul><ol><li>world</li><li>Blink</li></ol></div>'),
|
| + 'InsertUnorderedList - listify only the 1st list item');
|
| +
|
| +test(() => assert_selection(
|
| + '<div contenteditable><ol><li>hello</li><li>|world</li><li>Blink</li></ol></div>',
|
| + 'InsertUnorderedList',
|
| + '<div contenteditable><ol><li>hello</li></ol><ul><li>|world</li></ul><ol><li>Blink</li></ol></div>'),
|
| + 'InsertUnorderedList - listify only the 2nd list item');
|
| +
|
| +test(() => assert_selection(
|
| + '<div contenteditable><ol><li>hello</li><li>world</li><li>|Blink</li></ol></div>',
|
| + 'InsertUnorderedList',
|
| + '<div contenteditable><ol><li>hello</li><li>world</li></ol><ul><li>|Blink</li></ul></div>'),
|
| + 'InsertUnorderedList - listify only the 3rd list item');
|
| +
|
| +test(() => assert_selection(
|
| + '<div contenteditable><ul><li>^hello</li><li>world|</li><li>Blink</li></ul></div>',
|
| + 'InsertOrderedList',
|
| + '<div contenteditable><ol><li>^hello</li><li>world|</li></ol><ul><li>Blink</li></ul></div>'),
|
| + 'InsertOrderedList - listify the 1st and 2nd list items');
|
| +
|
| +test(() => assert_selection(
|
| + '<div contenteditable><ul><li>hello</li><li>^world</li><li>Blink|</li></ul></div>',
|
| + 'InsertOrderedList',
|
| + '<div contenteditable><ul><li>hello</li></ul><ol><li>^world</li><li>Blink|</li></ol></div>'),
|
| + 'InsertOrderedList - listify the 2nd and 3rd list items');
|
| +
|
| +test(() => assert_selection(
|
| + '<div contenteditable><ol><li>^hello</li><li>world|</li><li>Blink</li></ol></div>',
|
| + 'InsertUnorderedList',
|
| + '<div contenteditable><ul><li>^hello</li><li>world|</li></ul><ol><li>Blink</li></ol></div>'),
|
| + 'InsertUnorderedList - listify the 1st and 2nd list items');
|
| +
|
| +test(() => assert_selection(
|
| + '<div contenteditable><ol><li>hello</li><li>^world</li><li>Blink|</li></ol></div>',
|
| + 'InsertUnorderedList',
|
| + '<div contenteditable><ol><li>hello</li></ol><ul><li>^world</li><li>Blink|</li></ul></div>'),
|
| + 'InsertUnorderedList - listify the 2nd and 3rd list items');
|
| +</script>
|
|
|