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

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

Issue 766753002: Scroll text field when selecting text (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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/WebFrameTest.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_selection_extent_input_field.html
diff --git a/Source/web/tests/data/move_range_selection_extent_input_field.html b/Source/web/tests/data/move_range_selection_extent_input_field.html
new file mode 100644
index 0000000000000000000000000000000000000000..420c86d6113704628b75cf7b01ae0d97abbac94c
--- /dev/null
+++ b/Source/web/tests/data/move_range_selection_extent_input_field.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html id='root'>
+<body>
+<input type="text" id="inputfield" style='width:5em' value='Lengthy text goes here.' />
+<script>
+ function select() {
+ var input = document.getElementById('inputfield');
+ var range = input.setSelectionRange(0, 6);
+ window.getSelection().addRange(range);
+ }
+ window.onload = select;
+</script>
+</body>
+</html>
+
« no previous file with comments | « Source/web/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698