| <script> |
| if (window.testRunner) |
| testRunner.dumpEditingCallbacks(); |
| </script> |
| <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script> |
| <p>This tests deleting a selection created with a word granularity. To run it manually, double click on 'bar' and hit forward delete. You should see 'foo baz'.</p> |
| <div id="div" contenteditable="true">foo b<span id="target">a</span>r baz</div> |
| |
| <script> |
| if (window.testRunner) { |
| var target = document.getElementById("target"); |
| doubleClick(target.offsetLeft, target.offsetTop + target.offsetHeight / 2); |
| testRunner.execCommand("DeleteForward"); |
| } |
| </script> |