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

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: Applied suggested changes. Created 3 years, 8 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 <div id="log"></div>
yosin_UTC9 2017/03/24 04:46:53 nit: We don't need to have this DIV.
6 <script>
7 test(() => assert_selection(
8 '<div contenteditable><ul><li>|hello</li><li>world</li><li>WebKit</li></ul> </div>',
yosin_UTC9 2017/03/24 04:46:53 nit(optional): It is nice if we use term "Blink".
9 'InsertOrderedList',
10 '<div contenteditable><ol><li>|hello</li></ol><ul><li>world</li><li>WebKit< /li></ul></div>'),
11 'InsertOrderedList - listify only the 1st list item');
12
13 test(() => assert_selection(
14 '<div contenteditable><ul><li>hello</li><li>|world</li><li>WebKit</li></ul> </div>',
15 'InsertOrderedList',
16 '<div contenteditable><ul><li>hello</li></ul><ol><li>|world</li></ol><ul><l i>WebKit</li></ul></div>'),
17 'InsertOrderedList - listify only the 2nd list item');
18
19 test(() => assert_selection(
20 '<div contenteditable><ul><li>hello</li><li>world</li><li>|WebKit</li></ul> </div>',
21 'InsertOrderedList',
22 '<div contenteditable><ul><li>hello</li><li>world</li></ul><ol><li>|WebKit< /li></ol></div>'),
23 'InsertOrderedList - listify only the 3nd list item');
24
25 test(() => assert_selection(
26 '<div contenteditable><ol><li>|hello</li><li>world</li><li>WebKit</li></oll ></div>',
27 'InsertUnorderedList',
28 '<div contenteditable><ul><li>|hello</li></ul><ol><li>world</li><li>WebKit< /li></ol></div>'),
29 'InsertUnorderedList - listify only the 1st list item');
30
31 test(() => assert_selection(
32 '<div contenteditable><ol><li>hello</li><li>|world</li><li>WebKit</li></ol> </div>',
33 'InsertUnorderedList',
34 '<div contenteditable><ol><li>hello</li></ol><ul><li>|world</li></ul><ol><l i>WebKit</li></ol></div>'),
35 'InsertUnorderedList - listify only the 2nd list item');
36
37 test(() => assert_selection(
38 '<div contenteditable><ol><li>hello</li><li>world</li><li>|WebKit</li></ol> </div>',
39 'InsertUnorderedList',
40 '<div contenteditable><ol><li>hello</li><li>world</li></ol><ul><li>|WebKit< /li></ul></div>'),
41 'InsertUnorderedList - listify only the 3rd list item');
42
43 test(() => assert_selection(
44 '<div contenteditable><ul><li>^hello</li><li>world|</li><li>WebKit</li></ul ></div>',
45 'InsertOrderedList',
46 '<div contenteditable><ol><li>^hello</li><li>world|</li></ol><ul><li>WebKit </li></ul></div>'),
47 'InsertOrderedList - listify the 1st and 2nd list items');
48
49 test(() => assert_selection(
50 '<div contenteditable><ul><li>hello</li><li>^world</li><li>WebKit|</li></ul ></div>',
51 'InsertOrderedList',
52 '<div contenteditable><ul><li>hello</li></ul><ol><li>^world</li><li>WebKit| </li></ol></div>'),
53 'InsertOrderedList - listify the 2nd and 3rd list items');
54
55 test(() => assert_selection(
56 '<div contenteditable><ol><li>^hello</li><li>world|</li><li>WebKit</li></ol ></div>',
57 'InsertUnorderedList',
58 '<div contenteditable><ul><li>^hello</li><li>world|</li></ul><ol><li>WebKit </li></ol></div>'),
59 'InsertUnorderedList - listify the 1st and 2nd list items');
60
61 test(() => assert_selection(
62 '<div contenteditable><ol><li>hello</li><li>^world</li><li>WebKit|</li></ol ></div>',
63 'InsertUnorderedList',
64 '<div contenteditable><ol><li>hello</li></ol><ul><li>^world</li><li>WebKit| </li></ul></div>'),
65 'InsertUnorderedList - listify the 2nd and 3rd list items');
66 </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