| 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.
|
|
|