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

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

Issue 1690543004: MacViews: Implement Full Keyboard Access. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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: ui/views/controls/textfield/textfield_unittest.cc
diff --git a/ui/views/controls/textfield/textfield_unittest.cc b/ui/views/controls/textfield/textfield_unittest.cc
index 9732010195017cfaf35717e47463c3517d6b6cf9..6eaf2724376992ba74f9d2dca3901885290fa1c7 100644
--- a/ui/views/controls/textfield/textfield_unittest.cc
+++ b/ui/views/controls/textfield/textfield_unittest.cc
@@ -2511,11 +2511,11 @@ TEST_F(TextfieldTouchSelectionTest, TouchSelectionInUnfocusableTextfield) {
// Make textfield unfocusable and tap on it. Touch text selection should not
// get activated.
- textfield_->SetFocusable(false);
+ textfield_->SetFocusBehavior(views::View::FocusBehavior::NEVER);
Tap(touch_point);
EXPECT_FALSE(textfield_->HasFocus());
EXPECT_FALSE(test_api_->touch_selection_controller());
- textfield_->SetFocusable(true);
+ textfield_->SetFocusBehavior(views::View::FocusBehavior::ALWAYS);
}
// No touch on desktop Mac. Tracked in http://crbug.com/445520.

Powered by Google App Engine
This is Rietveld 408576698