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

Unified Diff: chrome/browser/global_keyboard_shortcuts_mac_unittest.mm

Issue 4987002: Mac: Fix for crbug.com/42517 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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: chrome/browser/global_keyboard_shortcuts_mac_unittest.mm
diff --git a/chrome/browser/global_keyboard_shortcuts_mac_unittest.mm b/chrome/browser/global_keyboard_shortcuts_mac_unittest.mm
index 4e3ab071810dc2d7f6dcdfd04d0de5f55094acc1..7db9a345d87f1a0108146c57b280334fe682f7bc 100644
--- a/chrome/browser/global_keyboard_shortcuts_mac_unittest.mm
+++ b/chrome/browser/global_keyboard_shortcuts_mac_unittest.mm
@@ -128,6 +128,9 @@ TEST(GlobalKeyboardShortcuts, KeyCharacterForEvent) {
// cmd-'z' / cmd-shift-';' on dvorak-qwerty
ASSERT_EQ('z', KeyCharacterForEvent(
KeyEvent(true, true, false, false, @"z", @":")));
+ // cmd-shift-'[' in an RTL context.
+ ASSERT_EQ('{', KeyCharacterForEvent(
+ KeyEvent(true, true, false, false, @"{", @"}")));
// Test if getting dead-key events return 0 and do not hang.
ASSERT_EQ(0, KeyCharacterForEvent(
KeyEvent(false, false, false, false, @"", @"")));

Powered by Google App Engine
This is Rietveld 408576698