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(() => assert_selection( | |
| 7 '<div contenteditable><div>f^oo</div>bar|<br></div>', | |
| 8 'insertHTML <div>foo</div><br class="Apple-interchange-newline">', | |
| 9 '<div contenteditable><div>ffoo</div><div>|<br></div></div>'), | |
| 10 'BR interchange-newline is not inserted'); | |
| 11 | |
| 12 test(() => assert_selection( | |
| 13 [ | |
| 14 '<div contenteditable>', | |
| 15 '<div style="color:red">b^ar</div>', | |
| 16 '<div style="color:blue">baz|</div>', | |
|
Xiaocheng
2016/07/26 09:43:35
<br> is missing.
yosin_UTC9
2016/07/27 01:45:36
Good catch!
Done.
| |
| 17 '</div>', | |
| 18 ].join(''), | |
| 19 'insertHTML <div>FOO</div><div>BAR</div>', | |
| 20 [ | |
| 21 '<div contenteditable>', | |
| 22 '<div style="color:red">bFOO</div>', | |
| 23 '<div>BAR|</div>', | |
| 24 '</div>', | |
| 25 ].join('')), | |
| 26 'Use existing DIV at replace when partial replacement'); | |
| 27 | |
| 28 test(() => assert_selection( | |
| 29 [ | |
| 30 '<div contenteditable>', | |
| 31 '<div style="color:red">b^ar</div>', | |
| 32 'baz|<br>', | |
| 33 '</div>', | |
| 34 ].join(''), | |
| 35 'insertHTML <div>FOO</div><div>BAR</div>', | |
| 36 [ | |
| 37 '<div contenteditable>', | |
| 38 '<div style="color:red">bFOO</div>', | |
| 39 '<div>BAR|</div>', | |
| 40 '</div>', | |
| 41 ].join('')), | |
| 42 'Replace text+BR to DIV'); | |
| 43 </script> | |
| OLD | NEW |