From 11d91ee47d71906d1ef4c98fc9e5cfddca15b0c2 Mon Sep 17 00:00:00 2001 From: Jason Wray Date: Tue, 3 Sep 2019 12:48:00 -0700 Subject: [darwin] Use en_US as default test locale/language --- .../darwin/test/MGLClockDirectionFormatterTests.m | 5 ---- .../test/MGLCompassDirectionFormatterTests.m | 5 ---- platform/darwin/test/MGLCoordinateFormatterTests.m | 5 ---- .../xcshareddata/xcschemes/CI.xcscheme | 2 ++ .../xcshareddata/xcschemes/dynamic.xcscheme | 26 +++++++++---------- .../ios/test/MGLMapAccessibilityElementTests.m | 5 ---- .../xcshareddata/xcschemes/CI.xcscheme | 30 ++++++++++------------ .../xcshareddata/xcschemes/dynamic.xcscheme | 26 +++++++++---------- .../xcshareddata/xcschemes/macosapp.xcscheme | 25 ++++++++---------- 9 files changed, 51 insertions(+), 78 deletions(-) diff --git a/platform/darwin/test/MGLClockDirectionFormatterTests.m b/platform/darwin/test/MGLClockDirectionFormatterTests.m index 1b2f058d18..05ebc3af2d 100644 --- a/platform/darwin/test/MGLClockDirectionFormatterTests.m +++ b/platform/darwin/test/MGLClockDirectionFormatterTests.m @@ -7,11 +7,6 @@ @implementation MGLClockDirectionFormatterTests -- (void)setUp { - // FIXME: https://github.com/mapbox/mapbox-gl-native/issues/14908 - XCTAssertEqualObjects(NSLocale.currentLocale.localeIdentifier, @"en_US", @"Device locale must be en_US for these tests to pass."); -} - - (void)testClockDirections { MGLClockDirectionFormatter *shortFormatter = [[MGLClockDirectionFormatter alloc] init]; shortFormatter.unitStyle = NSFormattingUnitStyleShort; diff --git a/platform/darwin/test/MGLCompassDirectionFormatterTests.m b/platform/darwin/test/MGLCompassDirectionFormatterTests.m index cd3aaebab7..c4ccc6ac4f 100644 --- a/platform/darwin/test/MGLCompassDirectionFormatterTests.m +++ b/platform/darwin/test/MGLCompassDirectionFormatterTests.m @@ -7,11 +7,6 @@ @implementation MGLCompassDirectionFormatterTests -- (void)setUp { - // FIXME: https://github.com/mapbox/mapbox-gl-native/issues/14908 - XCTAssertEqualObjects(NSLocale.currentLocale.localeIdentifier, @"en_US", @"Device locale must be en_US for these tests to pass."); -} - - (void)testCompassDirections { MGLCompassDirectionFormatter *shortFormatter = [[MGLCompassDirectionFormatter alloc] init]; shortFormatter.unitStyle = NSFormattingUnitStyleShort; diff --git a/platform/darwin/test/MGLCoordinateFormatterTests.m b/platform/darwin/test/MGLCoordinateFormatterTests.m index 4d4d8cf971..ac083fa103 100644 --- a/platform/darwin/test/MGLCoordinateFormatterTests.m +++ b/platform/darwin/test/MGLCoordinateFormatterTests.m @@ -7,11 +7,6 @@ @implementation MGLCoordinateFormatterTests -- (void)setUp { - // FIXME: https://github.com/mapbox/mapbox-gl-native/issues/14908 - XCTAssertEqualObjects(NSLocale.currentLocale.localeIdentifier, @"en_US", @"Device locale must be en_US for these tests to pass."); -} - - (void)testStrings { MGLCoordinateFormatter *shortFormatter = [[MGLCoordinateFormatter alloc] init]; shortFormatter.unitStyle = NSFormattingUnitStyleShort; diff --git a/platform/ios/ios.xcodeproj/xcshareddata/xcschemes/CI.xcscheme b/platform/ios/ios.xcodeproj/xcshareddata/xcschemes/CI.xcscheme index 7d59c4edee..ebe96ef82d 100644 --- a/platform/ios/ios.xcodeproj/xcshareddata/xcschemes/CI.xcscheme +++ b/platform/ios/ios.xcodeproj/xcshareddata/xcschemes/CI.xcscheme @@ -54,6 +54,8 @@ buildConfiguration = "Debug" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" + language = "en" + region = "US" codeCoverageEnabled = "YES" onlyGenerateCoverageForSpecifiedTargets = "YES" shouldUseLaunchSchemeArgsEnv = "NO"> diff --git a/platform/ios/ios.xcodeproj/xcshareddata/xcschemes/dynamic.xcscheme b/platform/ios/ios.xcodeproj/xcshareddata/xcschemes/dynamic.xcscheme index 65d4b059e8..4fdd896401 100644 --- a/platform/ios/ios.xcodeproj/xcshareddata/xcschemes/dynamic.xcscheme +++ b/platform/ios/ios.xcodeproj/xcshareddata/xcschemes/dynamic.xcscheme @@ -40,7 +40,18 @@ buildConfiguration = "Debug" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" - shouldUseLaunchSchemeArgsEnv = "YES"> + shouldUseLaunchSchemeArgsEnv = "YES" + language = "en" + region = "US"> + + + + - - - - - - - - @@ -70,7 +70,7 @@ buildForAnalyzing = "NO"> @@ -82,7 +82,18 @@ buildConfiguration = "Debug" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" - shouldUseLaunchSchemeArgsEnv = "YES"> + shouldUseLaunchSchemeArgsEnv = "YES" + language = "en" + region = "US"> + + + + @@ -95,17 +106,6 @@ - - - - - - - - + shouldUseLaunchSchemeArgsEnv = "YES" + language = "en" + region = "US"> + + + + @@ -53,17 +64,6 @@ - - - - - - - - + region = "US"> + + + + @@ -40,17 +50,6 @@ - - - - - - - -