1 <div><span id=
"start" style=
"-webkit-user-select:none;">0123</span>45<span id=
"end" style=
"-webkit-user-select:none;">6789</span></div>
4 if (window
.testRunner
) {
5 start
= document
.getElementById("start");
6 x1
= start
.offsetParent
.offsetLeft
+ start
.offsetLeft
+ start
.offsetWidth
/ 2;
7 y1
= start
.offsetParent
.offsetTop
+ start
.offsetTop
+ start
.offsetHeight
/ 2;
8 eventSender
.mouseMoveTo(x1
, y1
);
9 eventSender
.mouseDown();
11 eventSender
.leapForward(100);
12 eventSender
.mouseMoveTo(x1
+ 5, y1
);
13 eventSender
.leapForward(100);
14 eventSender
.mouseMoveTo(x1
+ 10, y1
);
16 end
= document
.getElementById("end");
17 x2
= end
.offsetParent
.offsetLeft
+ end
.offsetLeft
+ end
.offsetWidth
/ 2;
18 y2
= end
.offsetParent
.offsetTop
+ end
.offsetTop
+ end
.offsetHeight
/ 2;
20 eventSender
.mouseMoveTo(x2
, y2
);
21 eventSender
.mouseUp();