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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 '</div>', | 111 '</div>', |
112 '</div>', | 112 '</div>', |
113 ].join(''), | 113 ].join(''), |
114 'delete', | 114 'delete', |
115 [ | 115 [ |
116 '<div contenteditable>', | 116 '<div contenteditable>', |
117 'one<p>two</p><p>|ur</p>', | 117 'one<p>two</p><p>|ur</p>', |
118 '</div>', | 118 '</div>', |
119 ].join('')), | 119 ].join('')), |
120 'Deleting when a selection starts at the beginning of a paragraph preced
ed by another block and extends into the middle of a following paragraph.'); | 120 'Deleting when a selection starts at the beginning of a paragraph preced
ed by another block and extends into the middle of a following paragraph.'); |
| 121 |
| 122 |
| 123 test(() => assert_selection( |
| 124 [ |
| 125 '<div contenteditable>', |
| 126 '<div>', |
| 127 'one<p>two</p><p>three</p><p>fo^ur|</p>', |
| 128 '</div>', |
| 129 '</div>', |
| 130 ].join(''), |
| 131 'delete', |
| 132 [ |
| 133 '<div contenteditable>', |
| 134 '<div>', |
| 135 'one<p>two</p><p>three</p><p>fo|</p>', |
| 136 '</div>', |
| 137 '</div>', |
| 138 ].join('')), |
| 139 'Deleting when a selection starts in the middle of the last paragraph an
d extends to the end of that paragraph'); |
121 </script> | 140 </script> |
OLD | NEW |