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

Side by Side Diff: Source/WebKit/chromium/tests/data/move_caret.html

Issue 15017002: WebFrame::selectRange and moveCaret should behave like mouse selection (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comment Created 7 years, 7 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 select() { 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() {
12 var text = document.getElementById('target');
13 text.focus();
14 text.setSelectionRange(16, 18);
15 }
11 window.onload = select; 16 window.onload = select;
12 </script> 17 </script>
13 </body> 18 </body>
14 </html> 19 </html>
15 20
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/tests/WebFrameTest.cpp ('k') | Source/WebKit/chromium/tests/data/select_range_div_editable.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698