<html>
<head<></head>
<script>
function runTest()
{
if (window.testRunner)
testRunner.dumpAsText();
var elem = document.getElementById("test");
x = elem.offsetLeft + elem.offsetWidth / 2;
y = elem.offsetTop + elem.offsetHeight / 2;
eventSender.mouseMoveTo(x, y);
eventSender.mouseDown();
eventSender.mouseUp();
eventSender.mouseDown();
eventSender.mouseUp();
eventSender.mouseDown();
eventSender.mouseUp();
document.execCommand("copy");
eventSender.keyDown("ArrowDown");
eventSender.keyDown("ArrowDown");
eventSender.keyDown("ArrowDown");
document.execCommand("paste");
}
</script>
<body onload="runTest()" contenteditable="true" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>one </div><div id="test">two </div>
three <div>four </div><div><br></div></body></html>