| Index: views/controls/textfield/native_textfield_views_unittest.cc
|
| diff --git a/views/controls/textfield/native_textfield_views_unittest.cc b/views/controls/textfield/native_textfield_views_unittest.cc
|
| index efa7eb12c32dbd72957fd3cf76afcf73096b15be..08e9a3931cd85188bd014b36e461458ff9af9063 100644
|
| --- a/views/controls/textfield/native_textfield_views_unittest.cc
|
| +++ b/views/controls/textfield/native_textfield_views_unittest.cc
|
| @@ -250,6 +250,17 @@ TEST_F(NativeTextfieldViewsTest, InsertionDeletionTest) {
|
| textfield_->SelectAll();
|
| SendKeyEventToTextfieldViews(app::VKEY_K);
|
| EXPECT_STR_EQ("k", textfield_->text());
|
| +
|
| + // Delete the previous word from cursor.
|
| + textfield_->SetText(ASCIIToUTF16("one two three four"));
|
| + SendKeyEventToTextfieldViews(app::VKEY_END);
|
| + SendKeyEventToTextfieldViews(app::VKEY_BACK, false, true, false);
|
| + EXPECT_STR_EQ("one two three ", textfield_->text());
|
| +
|
| + // Delete upto the beginning of the buffer from cursor.
|
| + SendKeyEventToTextfieldViews(app::VKEY_LEFT, false, true, false);
|
| + SendKeyEventToTextfieldViews(app::VKEY_BACK, true, true, false);
|
| + EXPECT_STR_EQ("three ", textfield_->text());
|
| }
|
|
|
| TEST_F(NativeTextfieldViewsTest, PasswordTest) {
|
|
|