This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[core,ios,macos] Updates default styles to streets v11, etc. (#13585)
- Loading branch information
Showing
7 changed files
with
57 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
platform/ios/Integration Tests/MGLStyleURLIntegrationTest.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters