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

Unified Diff: content/test/data/touch_selection.html

Issue 23823004: Re-enable TouchCursorInTextfieldTest with some fixes and logs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added some comments Created 7 years, 3 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 | « content/browser/web_contents/touch_editable_impl_aura_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/touch_selection.html
diff --git a/content/test/data/touch_selection.html b/content/test/data/touch_selection.html
index 0c4721a98e89d80def24a0a0fed0ffb72cc3bfa5..89d768316132ec07618d91eb3c6cb913d1d1c61e 100644
--- a/content/test/data/touch_selection.html
+++ b/content/test/data/touch_selection.html
@@ -18,6 +18,8 @@ function get_selection() {
function focus_textfield() {
document.getElementById("textfield").focus();
+ // Focusing the textfiled selects its text. Collapse selection to a cursor.
+ window.getSelection().collapseToStart();
}
function get_cursor_position() {
« no previous file with comments | « content/browser/web_contents/touch_editable_impl_aura_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698