blob: 117e5b8e4f298eb1f963692d4e47086b2339251a [file] [log] [blame]
<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>