diff options
Diffstat (limited to 'platform/ios/Integration Tests/MGLMapViewIntegrationTest.m')
-rw-r--r-- | platform/ios/Integration Tests/MGLMapViewIntegrationTest.m | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/platform/ios/Integration Tests/MGLMapViewIntegrationTest.m b/platform/ios/Integration Tests/MGLMapViewIntegrationTest.m index 77e678d3ef..6b2e162c12 100644 --- a/platform/ios/Integration Tests/MGLMapViewIntegrationTest.m +++ b/platform/ios/Integration Tests/MGLMapViewIntegrationTest.m @@ -1,7 +1,7 @@ #import "MGLMapViewIntegrationTest.h" @interface MGLMapView (MGLMapViewIntegrationTest) -- (void)updateFromDisplayLink; +- (void)updateFromDisplayLink:(CADisplayLink *)displayLink; @end @implementation MGLMapViewIntegrationTest @@ -147,9 +147,10 @@ else if (self.mapView) { // Before iOS 10 it seems that the display link is not called during the // waitForExpectations below + timer = [NSTimer scheduledTimerWithTimeInterval:1.0/30.0 - target:self.mapView - selector:@selector(updateFromDisplayLink) + target:self + selector:@selector(updateMapViewDisplayLinkFromTimer:) userInfo:nil repeats:YES]; } @@ -158,6 +159,10 @@ [timer invalidate]; } +- (void)updateMapViewDisplayLinkFromTimer:(NSTimer *)timer { + [self.mapView updateFromDisplayLink:nil]; +} + - (MGLStyle *)style { return self.mapView.style; } |