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

Unified Diff: ash/accelerators/accelerator_controller_unittest.cc

Issue 10823402: Change the shortcut of toggling caps lock to Alt+Search. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 25804d228f742bdfcd1abf12fb6f9540b402f8d2..5569e51639075c4d5827c01143230c8e71b9e7b2 100644
--- a/ash/accelerators/accelerator_controller_unittest.cc
+++ b/ash/accelerators/accelerator_controller_unittest.cc
@@ -603,13 +603,13 @@ TEST_F(AcceleratorControllerTest, GlobalAccelerators) {
// ToggleCapsLock
{
EXPECT_FALSE(GetController()->Process(
- ui::Accelerator(ui::VKEY_LWIN, ui::EF_SHIFT_DOWN)));
+ ui::Accelerator(ui::VKEY_LWIN, ui::EF_ALT_DOWN)));
DummyCapsLockDelegate* delegate = new DummyCapsLockDelegate(false);
GetController()->SetCapsLockDelegate(
scoped_ptr<CapsLockDelegate>(delegate).Pass());
EXPECT_EQ(0, delegate->handle_caps_lock_count());
EXPECT_FALSE(GetController()->Process(
- ui::Accelerator(ui::VKEY_LWIN, ui::EF_SHIFT_DOWN)));
+ ui::Accelerator(ui::VKEY_LWIN, ui::EF_ALT_DOWN)));
EXPECT_EQ(1, delegate->handle_caps_lock_count());
}
{
@@ -618,7 +618,7 @@ TEST_F(AcceleratorControllerTest, GlobalAccelerators) {
scoped_ptr<CapsLockDelegate>(delegate).Pass());
EXPECT_EQ(0, delegate->handle_caps_lock_count());
EXPECT_TRUE(GetController()->Process(
- ui::Accelerator(ui::VKEY_LWIN, ui::EF_SHIFT_DOWN)));
+ ui::Accelerator(ui::VKEY_LWIN, ui::EF_ALT_DOWN)));
EXPECT_EQ(1, delegate->handle_caps_lock_count());
}
// Volume
« 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