| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <script src="../../resources/testharness.js"></script> | 2 <script src="../../resources/testharness.js"></script> |
| 3 <script src="../../resources/testharnessreport.js"></script> | 3 <script src="../../resources/testharnessreport.js"></script> |
| 4 <script src="../assert_selection.js"></script> | 4 <script src="../assert_selection.js"></script> |
| 5 <script> | 5 <script> |
| 6 test(() => assert_selection( | 6 test(() => assert_selection( |
| 7 [ | 7 [ |
| 8 '<div contenteditable>', | 8 '<div contenteditable>', |
| 9 '<div>', | 9 '<div>', |
| 10 '<p>A</p><p>^<br></p><p>B|</p><p><br></p>', | 10 '<p>A</p><p>^<br></p><p>B|</p><p><br></p>', |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 ].join(''), | 130 ].join(''), |
| 131 'delete', | 131 'delete', |
| 132 [ | 132 [ |
| 133 '<div contenteditable>', | 133 '<div contenteditable>', |
| 134 '<div>', | 134 '<div>', |
| 135 'one<p>two</p><p>three</p><p>fo|</p>', | 135 'one<p>two</p><p>three</p><p>fo|</p>', |
| 136 '</div>', | 136 '</div>', |
| 137 '</div>', | 137 '</div>', |
| 138 ].join('')), | 138 ].join('')), |
| 139 'Deleting when a selection starts in the middle of the last paragraph an
d extends to the end of that paragraph'); | 139 'Deleting when a selection starts in the middle of the last paragraph an
d extends to the end of that paragraph'); |
| 140 |
| 141 test(() => assert_selection( |
| 142 [ |
| 143 '<div contenteditable>', |
| 144 '<div>', |
| 145 'one<p>^two</p><p>thr|ee</p><p>four</p>', |
| 146 '</div>', |
| 147 '</div>', |
| 148 ].join(''), |
| 149 'delete', |
| 150 [ |
| 151 '<div contenteditable>', |
| 152 // TODO(yosin): We should revise "delete" command not have BR |
| 153 // after "four". |
| 154 'one<p>|ee</p><p>four<br></p>', |
| 155 '</div>', |
| 156 ].join('')), |
| 157 'Deleting when a selection starts at the beginning of a paragraph preced
ed by a text element and extends into the middle of a following paragraph.'); |
| 140 </script> | 158 </script> |
| OLD | NEW |