2 Test for
<i><a href=
"http://bugs.webkit.org/show_bug.cgi?id=14911">http://bugs.webkit.org/show_bug.cgi?id=
14911</a>
3 REGRESSION: Clicking in pasted text doesn't position the insertion point correctly
</i>.
6 You should be able to select individual letters in
“ipsum
” by dragging in the yellow
7 area
<em>above
</em> them.
9 <div id=
"target" style=
"float: left; background: #ffa; line-height: 5;">
10 <span style=
"background: white;">Lorem
<!-- comment --> ipsum
</span>
13 if (window
.eventSender
) {
14 var target
= document
.getElementById("target");
15 var startX
= document
.body
.offsetLeft
+ target
.offsetLeft
+ target
.offsetWidth
- 15;
16 var endX
= document
.body
.offsetLeft
+ target
.offsetLeft
+ 15;
17 var y
= document
.body
.offsetTop
+ target
.offsetTop
+ 5;
19 eventSender
.mouseMoveTo(startX
, y
);
20 eventSender
.mouseDown();
21 eventSender
.mouseMoveTo(startX
- 1, y
);
22 eventSender
.mouseMoveTo(endX
, y
);
23 eventSender
.mouseUp();