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 '<span>s <br><br>that| war. We of that war.</span>', |
| 10 '</div>', |
| 11 ].join(''), |
| 12 selection => { |
| 13 for (var i = 0; i < 4; ++i) |
| 14 selection.document.execCommand('delete'); |
| 15 }, |
| 16 [ |
| 17 '<div contenteditable>', |
| 18 '<span>s <br><br>|\u{00A0}war. We of that war.</span>', |
| 19 '</div>', |
| 20 ].join('')), |
| 21 'Delete command converts a space to nbsp after BR.'); |
| 22 </script> |
OLD | NEW |