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>abc<i>de ef</i> gh <b> i|j </b> kl</div>', |
| 8 'delete', |
| 9 '<div contenteditable>abc<i>de ef</i> gh |<b>j </b> kl</div>'), |
| 10 'Delete a character also removes redundant whitespaces'); |
| 11 |
| 12 test(() => assert_selection( |
| 13 '<div contenteditable>abc<i>de ef</i> gh <b> ^ij| </b> kl</div>', |
| 14 'delete', |
| 15 '<div contenteditable>abc<i>de ef</i> gh |<b>\u{00A0}</b>kl</div>'), |
| 16 'Delete characters and fix up whitespaces'); |
| 17 |
| 18 test(() => assert_selection( |
| 19 '<div contenteditable>bar ^baz|<span> </span>foo</div>', |
| 20 'delete', |
| 21 '<div contenteditable>bar |<span>\u{00A0}</span>foo</div>'), |
| 22 'Delete characters and convert SPACEs to NBSP'); |
| 23 |
| 24 test(() => assert_selection( |
| 25 '<div contenteditable>bar ^baz|<span> \u{00A0} </span>foo</div>', |
| 26 'delete', |
| 27 '<div contenteditable>bar |<span>\u{00A0} \u{00A0}</span>foo</div>'), |
| 28 'Delete characters and convert NBSP+SPACEs to NBSPs+SPACE'); |
| 29 </script> |
OLD | NEW |