Commit bdc7051b authored by erikchen's avatar erikchen Committed by Commit bot

mac: Fix key layout test on OSX 10.9+.

The test NSMenuItemAdditionsTest.TestMOnDifferentLayouts was failing because a
new French keyboard layout was added that the test logic failed to account
for.

BUG=390276

Review URL: https://codereview.chromium.org/585913004

Cr-Commit-Position: refs/heads/master@{#296115}
parent d90fe6dd
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment