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

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

Issue 1999773002: views::Textfield: Implement transpose editing command. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments. Created 4 years, 6 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/textfield_model_unittest.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/textfield_unittest.cc
diff --git a/ui/views/controls/textfield/textfield_unittest.cc b/ui/views/controls/textfield/textfield_unittest.cc
index b40de20b5fcd77bc9c8f7729fefcd4de45fcdb0c..b222a330eb3296110a276bec930ae67dd805deaa 100644
--- a/ui/views/controls/textfield/textfield_unittest.cc
+++ b/ui/views/controls/textfield/textfield_unittest.cc
@@ -763,7 +763,7 @@ TEST_F(TextfieldTest, KeysWithModifiersTest) {
SendKeyPress(ui::VKEY_T, shift);
SendKeyPress(ui::VKEY_E, shift | altgr);
SendKeyPress(ui::VKEY_X, 0);
- SendKeyPress(ui::VKEY_T, ctrl);
+ SendKeyPress(ui::VKEY_T, ctrl); // This causes transpose on Mac.
SendKeyPress(ui::VKEY_1, alt);
SendKeyPress(ui::VKEY_2, command);
SendKeyPress(ui::VKEY_3, 0);
@@ -776,7 +776,7 @@ TEST_F(TextfieldTest, KeysWithModifiersTest) {
if (TestingNativeCrOs())
EXPECT_STR_EQ("TeTEx34", textfield_->text());
else if (TestingNativeMac())
- EXPECT_STR_EQ("TheTEx134", textfield_->text());
+ EXPECT_STR_EQ("TheTxE134", textfield_->text());
else
EXPECT_STR_EQ("TeTEx234", textfield_->text());
}
« no previous file with comments | « ui/views/controls/textfield/textfield_model_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698