| Index: ui/events/event_unittest.cc
|
| diff --git a/ui/events/event_unittest.cc b/ui/events/event_unittest.cc
|
| index 11913e1f8333ce5e934b4a6c65df606cb62a7990..9de60a09b660e2485d6f82993317b966b033676e 100644
|
| --- a/ui/events/event_unittest.cc
|
| +++ b/ui/events/event_unittest.cc
|
| @@ -351,11 +351,10 @@ TEST(EventTest, KeyEventCode) {
|
| EXPECT_EQ(kCodeForSpace, key.GetCodeString());
|
| }
|
| {
|
| - // If the synthetic event is initialized without code, it returns
|
| - // an empty string.
|
| - // TODO(komatsu): Fill a fallback value assuming the US keyboard layout.
|
| + // If the synthetic event is initialized without code, the code is
|
| + // determined from the KeyboardCode assuming a US keyboard layout.
|
| KeyEvent key(ET_KEY_PRESSED, VKEY_SPACE, EF_NONE);
|
| - EXPECT_TRUE(key.GetCodeString().empty());
|
| + EXPECT_EQ(kCodeForSpace, key.GetCodeString());
|
| }
|
| #if defined(USE_X11)
|
| {
|
|
|