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 <script> | |
| 6 test(() => { | |
| 7 assert_selection( | |
| 8 '<div>foo<div>bar|</div>baz</div>', | |
| 9 selection => selection.modify('move', 'backward', 'paragraph'), | |
| 10 '<div>foo|<div>bar</div>baz</div>'); | |
| 11 assert_selection( | |
| 12 '<div>foo<span>bar|</span>baz</div>', | |
| 13 selection => selection.modify('move', 'backward', 'paragraph'), | |
| 14 '<div>|foo<span>bar</span>baz</div>'); | |
| 15 | |
|
yosin_UTC9
2017/01/11 05:59:54
Could you have two |test()| rather than adding bla
yoichio
2017/01/11 07:18:57
Done.
| |
| 16 assert_selection( | |
| 17 '<div>foo<div>|bar</div>baz</div>', | |
| 18 selection => selection.modify('move', 'forward', 'paragraph'), | |
| 19 '<div>foo<div>bar</div>|baz</div>'); | |
| 20 assert_selection( | |
| 21 '<div>foo<span>|bar</span>baz</div>', | |
| 22 selection => selection.modify('move', 'forward', 'paragraph'), | |
| 23 '<div>foo<span>bar</span>baz|</div>'); | |
| 24 | |
|
yosin_UTC9
2017/01/11 05:59:54
nit: no need to have an extra blank line.
yoichio
2017/01/11 07:18:57
Done.
| |
| 25 }, 'Selection.modify move by paragraph'); | |
| 26 </script> | |
| OLD | NEW |