| <!doctype html> |
| <script src="../../resources/testharness.js"></script> |
| <script src="../../resources/testharnessreport.js"></script> |
| <script src="../assert_selection.js"></script> |
| <script> |
| // This tests for a bug where expansion for smart delete would not consider |
| // editable boundaries. Only 'foo' should be deleted. You should see ' bar'. |
| // <radr://problem/5390681> |
| selection_test( |
| '<div contenteditable>^foo|<span contenteditable="false"> bar</span></div>', |
| 'delete', |
| '<div contenteditable>|<span contenteditable="false"> bar</span></div>', |
| 'Delete should consider editable boundaries'); |
| </script> |