This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
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] Re-apply default styles to streets v11, etc. (#13585)
# Conflicts: # platform/ios/CHANGELOG.md # platform/macos/CHANGELOG.md
- Loading branch information
1 parent
6e066f0
commit a09c7f4
Showing
5 changed files
with
54 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
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