3 <p id=
"description"></p>
6 <li>Click
"click me" in blue box below.
</li>
7 <li>See caret in blue box.
9 <div id=
"sample" contenteditable=
"true" style=
"border: solid 1px blue">click me
</div>
11 <script src=
"../../resources/js-test.js"></script>
13 description("Caret position after removing node");
15 function $(id
) { return document
.getElementById(id
); }
17 var sample
= $('sample');
19 sample
.addEventListener('focus', function() {
23 if (window
.eventSender
) {
24 eventSender
.mouseMoveTo(sample
.offsetLeft
+ 5, sample
.offsetTop
+ 5);
25 eventSender
.mouseDown(0);
26 shouldBeEqualToString('getSelection().type', 'Caret');
27 shouldBe('getSelection().focusNode', 'sample');
28 shouldBe('getSelection().focusOffset', '0');
29 $('content').outerHTML
= '';