diff options
author | Julian Rex <julian.rex@mapbox.com> | 2019-09-05 00:21:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-05 00:21:58 -0400 |
commit | 96581fd3ff4e4239d5498d7fc3d3a490c800d2e0 (patch) | |
tree | 5facff1f15c18e9f4ae2745efe95999f88538694 /platform/ios/Integration Tests/MGLMapViewIntegrationTest.m | |
parent | fa3bf5855bb5ff6ea2daa2cc1e265f1c17ea81b2 (diff) | |
download | qtlocation-mapboxgl-96581fd3ff4e4239d5498d7fc3d3a490c800d2e0.tar.gz |
[core, ios] Call transitionFinishFn for jumpTo. (#15473)
Diffstat (limited to 'platform/ios/Integration Tests/MGLMapViewIntegrationTest.m')
-rw-r--r-- | platform/ios/Integration Tests/MGLMapViewIntegrationTest.m | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/platform/ios/Integration Tests/MGLMapViewIntegrationTest.m b/platform/ios/Integration Tests/MGLMapViewIntegrationTest.m index 3fa191dfcd..1538c09516 100644 --- a/platform/ios/Integration Tests/MGLMapViewIntegrationTest.m +++ b/platform/ios/Integration Tests/MGLMapViewIntegrationTest.m @@ -33,13 +33,17 @@ return accessToken; } +- (MGLMapView *)mapViewForTestWithFrame:(CGRect)rect styleURL:(NSURL *)styleURL { + return [[MGLMapView alloc] initWithFrame:UIScreen.mainScreen.bounds styleURL:styleURL]; +} + - (void)setUp { [super setUp]; [MGLAccountManager setAccessToken:@"pk.feedcafedeadbeefbadebede"]; NSURL *styleURL = [[NSBundle bundleForClass:[self class]] URLForResource:@"one-liner" withExtension:@"json"]; - self.mapView = [[MGLMapView alloc] initWithFrame:UIScreen.mainScreen.bounds styleURL:styleURL]; + self.mapView = [self mapViewForTestWithFrame:UIScreen.mainScreen.bounds styleURL:styleURL]; self.mapView.delegate = self; UIView *superView = [[UIView alloc] initWithFrame:UIScreen.mainScreen.bounds]; |