Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / textarea-scrolled-endline-caret.html
blob734cdcb06a363663b5d0910014fd664b25a540e8
1 <head>
2 <script>
3 function test()
5 if (window.testRunner)
6 testRunner.dumpAsText();
7 var ta = document.getElementById('ta')
8 var res = document.getElementById('res');
10 // Send caret to bottom of textarea
11 ta.focus();
12 ta.setSelectionRange(ta.value.length, ta.value.length);
13 ta.blur();
15 ta.focus();
16 // click
17 if (window.eventSender) {
18 eventSender.mouseMoveTo(90, 20);
19 eventSender.mouseDown();
20 eventSender.mouseUp();
21 if (ta.selectionEnd == 17)
22 res.innerHTML = "Test Succeeded";
23 else
24 res.innerHTML = "Test Failed: caret is at " + ta.selectionEnd;
25 } else {
26 res.innerHTML = "Test can't run without event sender (part of DumpRenderTree). "
27 + "To test manually, click at the middle of the line marked 9 and check that the caret appears after the 9.";
30 </script>
31 </head>
32 <body onload="test()">
33 <textarea id="ta">
43 10</textarea>
44 <div id="res"></div>
45 </body>