Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Side by Side Diff: third_party/WebKit/LayoutTests/editing/execCommand/insert-list-items-inside-another-list.html

Issue 2757563004: Adjust insertion point when listifying unordered list items (Closed)
Patch Set: Patch rebased Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/external/wpt/editing/run/insertorderedlist-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!doctype html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <script src="../assert_selection.js"></script>
5 <script>
6 test(() => assert_selection(
7 '<div contenteditable><ul><li>|hello</li><li>world</li><li>Blink</li></ul>< /div>',
8 'InsertOrderedList',
9 '<div contenteditable><ol><li>|hello</li></ol><ul><li>world</li><li>Blink</ li></ul></div>'),
10 'InsertOrderedList - listify only the 1st list item');
11
12 test(() => assert_selection(
13 '<div contenteditable><ul><li>hello</li><li>|world</li><li>Blink</li></ul>< /div>',
14 'InsertOrderedList',
15 '<div contenteditable><ul><li>hello</li></ul><ol><li>|world</li></ol><ul><l i>Blink</li></ul></div>'),
16 'InsertOrderedList - listify only the 2nd list item');
17
18 test(() => assert_selection(
19 '<div contenteditable><ul><li>hello</li><li>world</li><li>|Blink</li></ul>< /div>',
20 'InsertOrderedList',
21 '<div contenteditable><ul><li>hello</li><li>world</li></ul><ol><li>|Blink</ li></ol></div>'),
22 'InsertOrderedList - listify only the 3nd list item');
23
24 test(() => assert_selection(
25 '<div contenteditable><ol><li>|hello</li><li>world</li><li>Blink</li></oll> </div>',
26 'InsertUnorderedList',
27 '<div contenteditable><ul><li>|hello</li></ul><ol><li>world</li><li>Blink</ li></ol></div>'),
28 'InsertUnorderedList - listify only the 1st list item');
29
30 test(() => assert_selection(
31 '<div contenteditable><ol><li>hello</li><li>|world</li><li>Blink</li></ol>< /div>',
32 'InsertUnorderedList',
33 '<div contenteditable><ol><li>hello</li></ol><ul><li>|world</li></ul><ol><l i>Blink</li></ol></div>'),
34 'InsertUnorderedList - listify only the 2nd list item');
35
36 test(() => assert_selection(
37 '<div contenteditable><ol><li>hello</li><li>world</li><li>|Blink</li></ol>< /div>',
38 'InsertUnorderedList',
39 '<div contenteditable><ol><li>hello</li><li>world</li></ol><ul><li>|Blink</ li></ul></div>'),
40 'InsertUnorderedList - listify only the 3rd list item');
41
42 test(() => assert_selection(
43 '<div contenteditable><ul><li>^hello</li><li>world|</li><li>Blink</li></ul> </div>',
44 'InsertOrderedList',
45 '<div contenteditable><ol><li>^hello</li><li>world|</li></ol><ul><li>Blink< /li></ul></div>'),
46 'InsertOrderedList - listify the 1st and 2nd list items');
47
48 test(() => assert_selection(
49 '<div contenteditable><ul><li>hello</li><li>^world</li><li>Blink|</li></ul> </div>',
50 'InsertOrderedList',
51 '<div contenteditable><ul><li>hello</li></ul><ol><li>^world</li><li>Blink|< /li></ol></div>'),
52 'InsertOrderedList - listify the 2nd and 3rd list items');
53
54 test(() => assert_selection(
55 '<div contenteditable><ol><li>^hello</li><li>world|</li><li>Blink</li></ol> </div>',
56 'InsertUnorderedList',
57 '<div contenteditable><ul><li>^hello</li><li>world|</li></ul><ol><li>Blink< /li></ol></div>'),
58 'InsertUnorderedList - listify the 1st and 2nd list items');
59
60 test(() => assert_selection(
61 '<div contenteditable><ol><li>hello</li><li>^world</li><li>Blink|</li></ol> </div>',
62 'InsertUnorderedList',
63 '<div contenteditable><ol><li>hello</li></ol><ul><li>^world</li><li>Blink|< /li></ul></div>'),
64 'InsertUnorderedList - listify the 2nd and 3rd list items');
65 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/external/wpt/editing/run/insertorderedlist-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698