blob: 82ca37371fac968cda2a826fb65dc821849b92ad [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 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);
testRunner.execCommand("DeleteBackward");
}
</script>