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

Unified Diff: ash/accelerators/accelerator_table_unittest.cc

Issue 10977088: Fix for Ash shortcuts unexpectedly working in system model dialog (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: adding unit tests Created 8 years, 2 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
Index: ash/accelerators/accelerator_table_unittest.cc
diff --git a/ash/accelerators/accelerator_table_unittest.cc b/ash/accelerators/accelerator_table_unittest.cc
index 8ec06459854196d721b3d04fee6a7ba69ea6f750..6467a9b4faacbc96872ec7ba50556c016cc8dc07 100644
--- a/ash/accelerators/accelerator_table_unittest.cc
+++ b/ash/accelerators/accelerator_table_unittest.cc
@@ -58,4 +58,13 @@ TEST(AcceleratorTableTest, CheckDuplicatedActionsAllowedAtLoginOrLockScreen) {
}
}
+TEST(AcceleratorTableTest, CheckDuplicatedActionsAllowedAtModalWindow) {
+ std::set<AcceleratorAction> actions;
+ for (size_t i = 0; i < kActionsAllowedAtModalWindowLength; ++i) {
+ EXPECT_TRUE(actions.insert(kActionsAllowedAtModalWindow[i]).second)
+ << "Duplicated action: " << kActionsAllowedAtModalWindow[i]
+ << " at index: " << i;
+ }
+}
+
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698