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

Unified Diff: ash/accelerators/accelerator_controller_unittest.cc

Issue 2971773003: Change Toggle High Contrast accelerator (Closed)
Patch Set: Rebase + Change commit message Created 3 years, 5 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 | « no previous file | ash/accelerators/accelerator_table.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/accelerator_controller_unittest.cc
diff --git a/ash/accelerators/accelerator_controller_unittest.cc b/ash/accelerators/accelerator_controller_unittest.cc
index 84034f999bb0653e60484fdee3ea356484b8d786..6519ab0554fb9e4741120b2889249990f5483758 100644
--- a/ash/accelerators/accelerator_controller_unittest.cc
+++ b/ash/accelerators/accelerator_controller_unittest.cc
@@ -1302,6 +1302,8 @@ TEST_F(DeprecatedAcceleratorTester, TestNewAccelerators) {
{true, ui::VKEY_ESCAPE, ui::EF_COMMAND_DOWN, SHOW_TASK_MANAGER},
{true, ui::VKEY_K, ui::EF_SHIFT_DOWN | ui::EF_COMMAND_DOWN,
SHOW_IME_MENU_BUBBLE},
+ {true, ui::VKEY_H, ui::EF_COMMAND_DOWN | ui::EF_CONTROL_DOWN,
+ TOGGLE_HIGH_CONTRAST},
};
// The NEXT_IME accelerator requires multiple IMEs to be available.
@@ -1313,7 +1315,11 @@ TEST_F(DeprecatedAcceleratorTester, TestNewAccelerators) {
EXPECT_TRUE(ProcessInController(CreateAccelerator(data)));
// Expect no notifications from the new accelerators.
- EXPECT_TRUE(IsMessageCenterEmpty());
+ if (data.action != TOGGLE_HIGH_CONTRAST) {
+ // The toggle high contrast accelerator displays a notification specific
+ // to the high contrast mode.
+ EXPECT_TRUE(IsMessageCenterEmpty());
+ }
// If the action is LOCK_SCREEN, we must reset the state by unlocking the
// screen before we proceed testing the rest of accelerators.
« no previous file with comments | « no previous file | ash/accelerators/accelerator_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698