2 <div id=
"container"><input type=checkbox
></div>
3 <div id=
"console"></div>
4 <script src=
"../../../../resources/js-test.js"></script>
6 var result
= document
.caretRangeFromPoint(40, 20);
7 shouldBeEqualToString('result.startContainer.tagName', 'DIV');
8 shouldBe('result.startOffset', '1');
9 shouldBe('result.startContainer', 'result.endContainer');
10 shouldBe('result.startOffset', 'result.endOffset');
11 if (window
.testRunner
)
12 document
.getElementById('container').outerHTML
= '';