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><span>^foo| bar baz</span></div>', |
| 8 'delete', |
| 9 '<div contenteditable><span>|\u{00A0}bar baz</span></div>'), |
| 10 'Delete characters with trailing whitespaces'); |
| 11 test(() => assert_selection( |
| 12 '<div contenteditable><span>foo<br>bar| baz</span></div>', |
| 13 selection => { |
| 14 selection.document.execCommand('delete'); |
| 15 selection.document.execCommand('delete'); |
| 16 selection.document.execCommand('delete'); |
| 17 }, |
| 18 '<div contenteditable><span>foo<br>|\u{00A0}baz</span></div>'), |
| 19 'Delete characters with trailing whitespaces after BR'); |
| 20 </script> |
OLD | NEW |