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

Unified Diff: chrome/browser/ui/cocoa/nsmenuitem_additions_unittest.mm

Issue 585913004: mac: Fix key layout test on OSX 10.9+. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/nsmenuitem_additions_unittest.mm
diff --git a/chrome/browser/ui/cocoa/nsmenuitem_additions_unittest.mm b/chrome/browser/ui/cocoa/nsmenuitem_additions_unittest.mm
index 33ed98c4950b41d8bd1396c4a7d3ba0ee04b13eb..3fdbcc0fc95587afd77e51a7e249654869937fd2 100644
--- a/chrome/browser/ui/cocoa/nsmenuitem_additions_unittest.mm
+++ b/chrome/browser/ui/cocoa/nsmenuitem_additions_unittest.mm
@@ -329,9 +329,8 @@ TEST(NSMenuItemAdditionsTest, TestMOnDifferentLayouts) {
NSString* layoutId = (NSString*)TISGetInputSourceProperty(
ref, kTISPropertyInputSourceID);
if ([layoutId isEqualToString:@"com.apple.keylayout.Belgian"] ||
- [layoutId isEqualToString:@"com.apple.keylayout.French"] ||
- [layoutId isEqualToString:@"com.apple.keylayout.French-numerical"] ||
- [layoutId isEqualToString:@"com.apple.keylayout.Italian"]) {
+ [layoutId isEqualToString:@"com.apple.keylayout.Italian"] ||
+ [layoutId hasPrefix:@"com.apple.keylayout.French"]) {
keyCode = 0x29;
} else if ([layoutId isEqualToString:@"com.apple.keylayout.Turkish"]) {
keyCode = 0x28;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698