| <!doctype html> |
| <script src="../../resources/testharness.js"></script> |
| <script src="../../resources/testharnessreport.js"></script> |
| <script src="../assert_selection.js"></script> |
| <script> |
| // Test to see if deleteWordBackward: hangs. |
| selection_test( |
| [ |
| '<div></div>', |
| `<div contenteditable>|</div>`, |
| '<div></div>', |
| ], |
| selection => { |
| if (!window.testRunner) |
| throw 'This test requires testRunner.execCommand()'; |
| testRunner.execCommand('DeleteWordBackward'); |
| }, |
| [ |
| '<div></div>', |
| '<div contenteditable>|</div>', |
| '<div></div>', |
| ], |
| 'DeleteBackward by word in an empty div should not hang.'); |
| </script> |