Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / after-line-break.html
blobcb512241759d19352cc794e0fb936271bbfc874d
1 <p>
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>.
4 </p>
5 <p>
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
9 stay there.
10 </p>
11 <div id="target" style="border: solid red; -webkit-user-modify: read-write; white-space: pre;">Lorem
13 ipsum</div>
14 <script>
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();
29 </script>