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

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

Issue 1355753003: Allow keys with AltGr modifier to be inserted in Textfield (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added test Created 5 years, 3 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.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 4bb9f54d45230ff2fe7f71b3538b43ab2dbdf7f3..42b629fcbb356d92db0279d9278ce224a2c8e8eb 100644
--- a/ui/views/controls/textfield/textfield_unittest.cc
+++ b/ui/views/controls/textfield/textfield_unittest.cc
@@ -727,6 +727,9 @@ TEST_F(TextfieldTest, KeysWithModifiersTest) {
const int altgr = ui::EF_ALTGR_DOWN;
const int shift = ui::EF_SHIFT_DOWN;
+ SendKeyPress(ui::VKEY_T, shift | alt | altgr);
+ SendKeyPress(ui::VKEY_H, alt);
+ SendKeyPress(ui::VKEY_E, altgr);
SendKeyPress(ui::VKEY_T, shift);
SendKeyPress(ui::VKEY_E, shift | altgr);
SendKeyPress(ui::VKEY_X, 0);
@@ -737,9 +740,9 @@ TEST_F(TextfieldTest, KeysWithModifiersTest) {
SendKeyPress(ui::VKEY_4, 0);
if (TestingNativeCrOs())
- EXPECT_STR_EQ("TEx34", textfield_->text());
+ EXPECT_STR_EQ("TeTEx34", textfield_->text());
else
- EXPECT_STR_EQ("TEx234", textfield_->text());
+ EXPECT_STR_EQ("TeTEx234", textfield_->text());
}
TEST_F(TextfieldTest, ControlAndSelectTest) {
« no previous file with comments | « ui/views/controls/textfield/textfield.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698