Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / input-text-scroll-left-on-blur.html
blob6abfeb1cc636a84c2dc666f6bf5f359eabc9e7ec
1 <input id="a" type="text" value="this text field has a lot of text in it so that it needs to scrol">
2 <input id="b" type="text" style="direction: rtl" value="this text field has a lot of text in it so that it needs to scrol">
3 <input id="c" type="text" value="this text field has a lot of text in it so that it needs to scrol">
4 <p>Tests scrolling back to the beginning when a text field blurs. The first field should be scrolled to the left, the second and third scrolled to the right.</p>
5 <script>
6 var a = document.getElementById("a");
7 a.focus();
8 a.setSelectionRange(66, 66);
9 if (window.eventSender) {
10 eventSender.keyDown("l");
12 var b = document.getElementById("b");
13 b.focus();
14 b.setSelectionRange(66, 66);
15 if (window.eventSender) {
16 eventSender.keyDown("l");
18 var c = document.getElementById("c");
19 c.focus();
20 c.setSelectionRange(66, 66);
21 if (window.eventSender) {
22 eventSender.keyDown("l");
24 </script>