Chromium Code Reviews| OLD | NEW |
|---|---|
| (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> | |
| OLD | NEW |