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 [ |
| 8 '<div contenteditable>', |
| 9 'foo<h6>|bar</h6>', |
| 10 '</div>', |
| 11 ].join(''), |
| 12 'delete', |
| 13 [ |
| 14 '<div contenteditable>', |
| 15 'foo|bar', |
| 16 '</div>', |
| 17 ].join('')), |
| 18 '1 deleting line break before H6'); |
| 19 |
| 20 test(() =>assert_selection( |
| 21 [ |
| 22 '<div contenteditable>', |
| 23 '<em>foo</em><h6><font color="red">|bar</font></h6>', |
| 24 '</div>', |
| 25 ].join(''), |
| 26 'delete', |
| 27 [ |
| 28 '<div contenteditable>', |
| 29 '<em>foo|</em><span style="color: red;">bar</span>', |
| 30 '</div>', |
| 31 ].join('')), |
| 32 '2 deleting line break before H6+FONT'); |
| 33 |
| 34 test(() =>assert_selection( |
| 35 [ |
| 36 '<div contenteditable>', |
| 37 '<em>foo</em><h6><font color="blue" style="color:red">|bar</font
></h6>', |
| 38 '</div>', |
| 39 ].join(''), |
| 40 'delete', |
| 41 [ |
| 42 '<div contenteditable>', |
| 43 '<em>foo|</em><span style="color: red;">bar</span>', |
| 44 '</div>', |
| 45 ].join('')), |
| 46 '3 deleting line break before H6 with style'); |
| 47 </script> |
OLD | NEW |