7 testRunner
.dumpAsText();
9 var elem
= document
.getElementById("test");
11 x
= elem
.offsetLeft
+ elem
.offsetWidth
/ 2;
12 y
= elem
.offsetTop
+ elem
.offsetHeight
/ 2;
14 eventSender
.mouseMoveTo(x
, y
);
15 eventSender
.mouseDown();
16 eventSender
.mouseUp();
17 eventSender
.mouseDown();
18 eventSender
.mouseUp();
19 eventSender
.mouseDown();
20 eventSender
.mouseUp();
21 document
.execCommand("copy");
22 eventSender
.keyDown("downArrow");
23 eventSender
.keyDown("downArrow");
24 eventSender
.keyDown("downArrow");
25 document
.execCommand("paste");
28 <body onload=
"runTest()" contenteditable=
"true" style=
"word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
30 <div id=
"test">two
</div>three
31 <div>four
</div>