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

Unified 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: Move to method of VisibleSelection, fix style nits 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 side-by-side diff with in-line comments
Download patch
Index: Source/WebKit/chromium/tests/data/move_caret.html
diff --git a/Source/WebKit/chromium/tests/data/move_caret.html b/Source/WebKit/chromium/tests/data/move_caret.html
index 3db406e603b33174fa6809d5a0ee6405e3b48250..4dd24a000157bcdc2f2f40ea2dc0776e888629c2 100644
--- a/Source/WebKit/chromium/tests/data/move_caret.html
+++ b/Source/WebKit/chromium/tests/data/move_caret.html
@@ -3,11 +3,16 @@
<body>
<input id='target' type='text' value='16-char header. ^^ 16-char footer.'></input>
<script>
- function select() {
+ function selectCaret() {
var text = document.getElementById('target');
text.focus();
text.setSelectionRange(17, 17);
}
+ function selectRange() {
+ var text = document.getElementById('target');
+ text.focus();
+ text.setSelectionRange(16, 18);
+ }
window.onload = select;
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698