1 <p>This tests deleting a selection that ends just before a space. There was a bug where it would be treated like a smart delete (the space would be incorrectly removed). To run it outside of DRT, you must delete manually. Press delete and you should see
"Th is a test".
</p>
2 <div id=
"div" contenteditable=
"true">This is a test.
</div>
6 window
.testRunner
.dumpAsText();
8 text
= document
.getElementById("div").firstChild
;
9 window
.getSelection().setBaseAndExtent(text
, 2, text
, 4);
10 if (window
.eventSender
)
11 eventSender
.keyDown("delete");