Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Side by Side Diff: LayoutTests/editing/input/caret-at-the-edge-of-input.html

Issue 9965112: Revert 103073 - Scroll non-visible edit controls and caret into the center of the view when startin… (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1025/
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <head>
3 </head>
4 <body>
5 <div>When the caret reaches the edge of the input box, on the next input if must jump to the center of the control.</div>
6 <input type="text" name="input-edit" id="input-edit" size="10" value="0123456789 01234567890123456789" />
7 <script>
8
9 var inputEdit = document.getElementById("input-edit");
10 inputEdit.focus();
11 var inputEditContent = inputEdit.value;
12 inputEdit.setSelectionRange(0, 0);
13 if (window.eventSender) {
14 for (var i = 0; i < inputEdit.size * 1.2; ++i)
15 eventSender.keyDown(inputEditContent[i]);
16 }
17
18 </script>
19 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698