2 Test for
<i><a href=
"rdar://problem/5973313">rdar://problem/
5973313</a>
3 REGRESSION (r32508): Down arrow doesn't change caret with non-user entered newlines in textareas
</i>.
6 To test manually, click to the right of the first word on the first line to place
7 the caret at the end of the line, then press the down arrow. The caret should move
8 to the next (empty) line. Then click somewhere on that line. The caret should not
11 <div id=
"target" style=
"border: solid red; -webkit-user-modify: read-write; white-space: pre;">Lorem
15 if (window
.testRunner
) {
16 testRunner
.dumpAsText();
17 testRunner
.dumpEditingCallbacks();
18 var target
= document
.getElementById("target");
19 var x
= target
.offsetParent
.offsetLeft
+ target
.offsetLeft
;
20 var y
= target
.offsetParent
.offsetTop
+ target
.offsetTop
;
21 eventSender
.mouseMoveTo(x
+ target
.offsetWidth
- 10, y
+ 2);
22 eventSender
.mouseDown();
23 eventSender
.mouseUp();
24 getSelection().modify("move", "forward", "line");
25 eventSender
.mouseMoveTo(x
+ target
.offsetWidth
- 10, y
+ target
.offsetHeight
/ 2);
26 eventSender
.mouseDown();
27 eventSender
.mouseUp();