diff options
Diffstat (limited to 'platform/ios/Integration Tests/MGLStyleURLIntegrationTest.m')
-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 |