| 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 'foo', | 9 'foo', |
| 10 '<table><tr><td>this</td></tr><tr><td>is</td></tr><tr><td>a table</td>
</tr></table>', | 10 '<table><tr><td>this</td></tr><tr><td>is</td></tr><tr><td>a table</td>
</tr></table>', |
| 11 'baz', | 11 'baz', |
| 12 '</div>' | 12 '</div>' |
| 13 ].join(''), | 13 ].join(''), |
| 14 selection => selection.collapse(selection.document.querySelector('table'), 0
), | 14 selection => selection.collapse(selection.document.querySelector('table'), 0
), |
| 15 [ | 15 [ |
| 16 '<div contenteditable>', | 16 '<div contenteditable>', |
| 17 'foo', | 17 'foo', |
| 18 '|<table><tbody><tr><td>this</td></tr><tr><td>is</td></tr><tr><td>a ta
ble</td></tr></tbody></table>', | 18 '<table>|<tbody><tr><td>this</td></tr><tr><td>is</td></tr><tr><td>a ta
ble</td></tr></tbody></table>', |
| 19 'baz', | 19 'baz', |
| 20 '</div>' | 20 '</div>' |
| 21 ].join('')), 'Place the caret before a block table.'); | 21 ].join('')), 'Place the caret before a block table.'); |
| 22 </script> | 22 </script> |
| OLD | NEW |