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

Unified Diff: webkit/tools/test_shell/keyboard_unittest.cc

Issue 330014: [mac] Send cmd-c and friends back to browser. (Closed)
Patch Set: foo! Created 11 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
« no previous file with comments | « webkit/glue/editor_client_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/keyboard_unittest.cc
diff --git a/webkit/tools/test_shell/keyboard_unittest.cc b/webkit/tools/test_shell/keyboard_unittest.cc
index 3ced54ea75f90d26550c72d2747993a96cd94c2d..96731734ff7376cd1b4020938ef155caa0baf282 100644
--- a/webkit/tools/test_shell/keyboard_unittest.cc
+++ b/webkit/tools/test_shell/keyboard_unittest.cc
@@ -106,23 +106,33 @@ TEST_F(KeyboardTest, TestOSModifierZ) {
}
TEST_F(KeyboardTest, TestOSModifierY) {
+#if !defined(OS_MACOSX)
EXPECT_STREQ("Redo", InterpretOSModifierKeyPress('Y'));
+#endif
}
TEST_F(KeyboardTest, TestOSModifierA) {
+#if !defined(OS_MACOSX)
EXPECT_STREQ("SelectAll", InterpretOSModifierKeyPress('A'));
+#endif
}
TEST_F(KeyboardTest, TestOSModifierX) {
+#if !defined(OS_MACOSX)
EXPECT_STREQ("Cut", InterpretOSModifierKeyPress('X'));
+#endif
}
TEST_F(KeyboardTest, TestOSModifierC) {
+#if !defined(OS_MACOSX)
EXPECT_STREQ("Copy", InterpretOSModifierKeyPress('C'));
+#endif
}
TEST_F(KeyboardTest, TestOSModifierV) {
+#if !defined(OS_MACOSX)
EXPECT_STREQ("Paste", InterpretOSModifierKeyPress('V'));
+#endif
}
TEST_F(KeyboardTest, TestEscape) {
« no previous file with comments | « webkit/glue/editor_client_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698