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

Unified Diff: Source/web/tests/data/move_range.html

Issue 319643002: Fixed touch selection handle manipulation when pinched in. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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
« no previous file with comments | « Source/web/tests/PinchViewportTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/tests/data/move_range.html
diff --git a/Source/web/tests/data/move_caret.html b/Source/web/tests/data/move_range.html
similarity index 51%
copy from Source/web/tests/data/move_caret.html
copy to Source/web/tests/data/move_range.html
index 4dd24a000157bcdc2f2f40ea2dc0776e888629c2..d3e62039ce2af28438edf3fd89baa4ab1ee68a73 100644
--- a/Source/web/tests/data/move_caret.html
+++ b/Source/web/tests/data/move_range.html
@@ -1,7 +1,21 @@
<!DOCTYPE html>
<html>
+<head>
+ <style>
+ .text {
+ font-family: courier;
+ font-size: 12px;
+ padding: 0px;
+ margin: 0px;
+ border: 0px;
+ }
+ </style>
+</head>
<body>
-<input id='target' type='text' value='16-char header. ^^ 16-char footer.'></input>
+<textarea id='target' class="text" type='text' rows="3" cols="20">
+First Line
+Second Text Row
+</textarea>
<script>
function selectCaret() {
var text = document.getElementById('target');
@@ -11,9 +25,8 @@
function selectRange() {
var text = document.getElementById('target');
text.focus();
- text.setSelectionRange(16, 18);
+ text.setSelectionRange(1, 3);
}
- window.onload = select;
</script>
</body>
</html>
« no previous file with comments | « Source/web/tests/PinchViewportTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698