Chromium Code Reviews| 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 45abeecdbe3bf527902236758f8841cefb57b56f..bb24d1f66157d7ebc6f4043edcb7d8c4ff9282b3 100644 |
| --- a/ui/views/controls/textfield/textfield_unittest.cc |
| +++ b/ui/views/controls/textfield/textfield_unittest.cc |
| @@ -252,7 +252,7 @@ void MockInputMethod::ClearComposition() { |
| result_text_.clear(); |
| } |
| -// A Textfield wrapper to intercept OnKey[Pressed|Released]() ressults. |
| +// A Textfield wrapper to intercept OnKey[Pressed|Released]() results. |
| class TestTextfield : public views::Textfield { |
| public: |
| TestTextfield() |
| @@ -3112,20 +3112,16 @@ TEST_F(TextfieldTest, AccessiblePasswordTest) { |
| EXPECT_TRUE(node_data_protected.HasStateFlag(ui::AX_STATE_PROTECTED)); |
| } |
| -// Test if the cursor visibility is controlled by |cursor_enabled_| in |
| +// Verifies if the cursor visibility is controlled by |cursor_enabled_| in |
|
msw
2017/03/10 21:04:30
nit: "Verify that cursor visibility is controlled
yiyix
2017/03/13 04:02:16
Done.
|
| // RenderText. |
| TEST_F(TextfieldTest, CursorVisibility) { |
| InitTextfield(); |
| gfx::RenderText* render_text = test_api_->GetRenderText(); |
| render_text->SetCursorEnabled(false); |
| - textfield_->OnBlur(); |
| - textfield_->OnFocus(); |
| EXPECT_FALSE(test_api_->IsCursorVisible()); |
| render_text->SetCursorEnabled(true); |
| - textfield_->OnBlur(); |
| - textfield_->OnFocus(); |
| EXPECT_TRUE(test_api_->IsCursorVisible()); |
| } |