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

Side by Side Diff: Source/web/tests/data/move_caret.html

Issue 19906002: Move data/ directory from WebKit/chromium/tests into web/tests/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <body> 3 <body>
4 <input id='target' type='text' value='16-char header. ^^ 16-char footer.'></inpu t> 4 <input id='target' type='text' value='16-char header. ^^ 16-char footer.'></inpu t>
5 <script> 5 <script>
6 function selectCaret() { 6 function selectCaret() {
7 var text = document.getElementById('target'); 7 var text = document.getElementById('target');
8 text.focus(); 8 text.focus();
9 text.setSelectionRange(17, 17); 9 text.setSelectionRange(17, 17);
10 } 10 }
11 function selectRange() { 11 function selectRange() {
12 var text = document.getElementById('target'); 12 var text = document.getElementById('target');
13 text.focus(); 13 text.focus();
14 text.setSelectionRange(16, 18); 14 text.setSelectionRange(16, 18);
15 } 15 }
16 window.onload = select; 16 window.onload = select;
17 </script> 17 </script>
18 </body> 18 </body>
19 </html> 19 </html>
20 20
OLDNEW
« no previous file with comments | « Source/web/tests/data/longpress_selection.html ('k') | Source/web/tests/data/navigate_to_same.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698