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

Unified Diff: ui/views/controls/textfield/native_textfield_views_unittest.cc

Issue 22638016: Views Textfield: multiple clicks should alternate between double and triple click behavior (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added comment Created 7 years, 4 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 | « ui/views/controls/textfield/native_textfield_views.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/textfield/native_textfield_views_unittest.cc
diff --git a/ui/views/controls/textfield/native_textfield_views_unittest.cc b/ui/views/controls/textfield/native_textfield_views_unittest.cc
index dd9eef955a72aa8266cf9e66fd1d8116237233b1..b69869a75276858d8c2b888b831fa2a034bb1f06 100644
--- a/ui/views/controls/textfield/native_textfield_views_unittest.cc
+++ b/ui/views/controls/textfield/native_textfield_views_unittest.cc
@@ -816,10 +816,10 @@ TEST_F(NativeTextfieldViewsTest, DoubleAndTripleClickTest) {
textfield_view_->OnMouseReleased(release);
EXPECT_STR_EQ("hello world", textfield_->GetSelectedText());
- // Another click should reset back to single click.
+ // Another click should reset back to double click.
textfield_view_->OnMousePressed(click);
textfield_view_->OnMouseReleased(release);
- EXPECT_TRUE(textfield_->GetSelectedText().empty());
+ EXPECT_STR_EQ("hello", textfield_->GetSelectedText());
}
TEST_F(NativeTextfieldViewsTest, DragToSelect) {
« no previous file with comments | « ui/views/controls/textfield/native_textfield_views.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698