diff options
author | Jordan Kiley <jmkiley@users.noreply.github.com> | 2018-10-15 10:18:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-15 10:18:50 +0800 |
commit | e35921e504a94cbe5f8cbc35b15943f1d2e8903f (patch) | |
tree | ca56d72727a629f1c100693428d8a7131eb22d0c /platform/ios/test | |
parent | 7fb29186c87afcd9bcc3abc2458411bb28cc4380 (diff) | |
download | qtlocation-mapboxgl-e35921e504a94cbe5f8cbc35b15943f1d2e8903f.tar.gz |
[ios] Create a branch that supports iOS 8 (#13036)
* [ios] switched deployment
* [ios, macos] started to restore iOS 8 support
* [ios] Started to restore iOS 8 support
* [ios, macos] Switching storage types
* [ios] update iosapp
* [ios, macos] fixed a test, documented length is unavailable
* [ios] remove safe area from integration test
* [ios] Update Changelog, Installation guide, and README
* [ios] Addressed Fabian's feedback
Diffstat (limited to 'platform/ios/test')
-rw-r--r-- | platform/ios/test/MGLMapAccessibilityElementTests.m | 7 | ||||
-rw-r--r-- | platform/ios/test/MGLNSOrthographyAdditionsTests.m | 8 |
2 files changed, 11 insertions, 4 deletions
diff --git a/platform/ios/test/MGLMapAccessibilityElementTests.m b/platform/ios/test/MGLMapAccessibilityElementTests.m index 916461e708..65a68c90f6 100644 --- a/platform/ios/test/MGLMapAccessibilityElementTests.m +++ b/platform/ios/test/MGLMapAccessibilityElementTests.m @@ -25,7 +25,12 @@ @"name_en": @"Цинциннати", }; element = [[MGLFeatureAccessibilityElement alloc] initWithAccessibilityContainer:self feature:feature]; - XCTAssertEqualObjects(element.accessibilityLabel, @"Cincinnati", @"Accessibility label should be romanized."); + + if (@available(iOS 9.0, *)) { + XCTAssertEqualObjects(element.accessibilityLabel, @"Cincinnati", @"Accessibility label should be romanized."); + } else { + XCTAssertEqualObjects(element.accessibilityLabel, @"Цинциннати", @"Accessibility label should not be romanized."); + } } - (void)testPlaceFeatureValues { diff --git a/platform/ios/test/MGLNSOrthographyAdditionsTests.m b/platform/ios/test/MGLNSOrthographyAdditionsTests.m index f30553e8f6..b53cdcc918 100644 --- a/platform/ios/test/MGLNSOrthographyAdditionsTests.m +++ b/platform/ios/test/MGLNSOrthographyAdditionsTests.m @@ -10,9 +10,11 @@ @implementation MGLNSOrthographyAdditionsTests - (void)testStreetsLanguages { - for (NSString *language in [MGLVectorTileSource mapboxStreetsLanguages]) { - NSString *dominantScript = [NSOrthography mgl_dominantScriptForMapboxStreetsLanguage:language]; - XCTAssertNotEqualObjects(dominantScript, @"Zyyy", @"Mapbox Streets languages should have dominant script"); + if (@available(iOS 11.0, *)) { + for (NSString *language in [MGLVectorTileSource mapboxStreetsLanguages]) { + NSString *dominantScript = [NSOrthography mgl_dominantScriptForMapboxStreetsLanguage:language]; + XCTAssertNotEqualObjects(dominantScript, @"Zyyy", @"Mapbox Streets languages should have dominant script"); + } } } |