diff options
author | Julian Rex <julian.rex@gmail.com> | 2018-12-18 16:00:19 -0500 |
---|---|---|
committer | Julian Rex <julian.rex@mapbox.com> | 2018-12-18 16:09:13 -0500 |
commit | e36e4cf8975dd8fca345ac88da760c28ea5fdac7 (patch) | |
tree | b7d56f8cef2c07643babb76f88805321273b1b89 /platform/ios/Integration Tests | |
parent | 21c3ee43a2119b267ef6caeb35cc48864ac67b07 (diff) | |
download | qtlocation-mapboxgl-e36e4cf8975dd8fca345ac88da760c28ea5fdac7.tar.gz |
[core, ios, macos] Updates default styles to streets v11, etc. Cherry picks 1c7cd243 #13585upstream/jrex/release-v.4.7.0-stable-cherrypicks
Diffstat (limited to 'platform/ios/Integration Tests')
-rw-r--r-- | platform/ios/Integration Tests/MGLStyleURLIntegrationTest.m | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/platform/ios/Integration Tests/MGLStyleURLIntegrationTest.m b/platform/ios/Integration Tests/MGLStyleURLIntegrationTest.m new file mode 100644 index 0000000000..f9217bae5f --- /dev/null +++ b/platform/ios/Integration Tests/MGLStyleURLIntegrationTest.m @@ -0,0 +1,42 @@ +#import "MGLMapViewIntegrationTest.h" + +@interface MGLStyleURLIntegrationTest : MGLMapViewIntegrationTest +@end + +@implementation MGLStyleURLIntegrationTest + +- (void)internalTestWithStyleSelector:(SEL)selector { + if (![self validAccessToken]) { + return; + } + + self.mapView.styleURL = [MGLStyle performSelector:selector]; + [self waitForMapViewToFinishLoadingStyleWithTimeout:5]; +} + + +- (void)testLoadingStreetsStyleURL { + [self internalTestWithStyleSelector:@selector(streetsStyleURL)]; +} + +- (void)testLoadingOutdoorsStyleURL { + [self internalTestWithStyleSelector:@selector(outdoorsStyleURL)]; +} + +- (void)testLoadingLightStyleURL { + [self internalTestWithStyleSelector:@selector(lightStyleURL)]; +} + +- (void)testLoadingDarkStyleURL { + [self internalTestWithStyleSelector:@selector(darkStyleURL)]; +} + +- (void)testLoadingSatelliteStyleURL { + [self internalTestWithStyleSelector:@selector(satelliteStyleURL)]; +} + +- (void)testLoadingSatelliteStreetsStyleURL { + [self internalTestWithStyleSelector:@selector(satelliteStreetsStyleURL)]; +} + +@end |