diff options
author | Jason Wray <jason@mapbox.com> | 2019-06-18 12:13:43 -0700 |
---|---|---|
committer | Jason Wray <jason@mapbox.com> | 2019-06-26 12:18:22 -0700 |
commit | 8a9567e072e09a2f5a6da95a2a2ce56b2f05a79b (patch) | |
tree | 628295b3f2e1db11f39c0f688a6c65fb16828374 /platform/ios/test/MGLAnnotationViewTests.m | |
parent | a16c67d953926bd9b86359316b983d01825fd0f2 (diff) | |
download | qtlocation-mapboxgl-8a9567e072e09a2f5a6da95a2a2ce56b2f05a79b.tar.gz |
[ios, macos] Deprecate methods in favor of new completion handler versions
Diffstat (limited to 'platform/ios/test/MGLAnnotationViewTests.m')
-rw-r--r-- | platform/ios/test/MGLAnnotationViewTests.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/ios/test/MGLAnnotationViewTests.m b/platform/ios/test/MGLAnnotationViewTests.m index 6c3cd6ea4a..bb85ea8c8a 100644 --- a/platform/ios/test/MGLAnnotationViewTests.m +++ b/platform/ios/test/MGLAnnotationViewTests.m @@ -134,7 +134,7 @@ static NSString * const MGLTestAnnotationReuseIdentifer = @"MGLTestAnnotationReu XCTAssertNil(_mapView.selectedAnnotations.firstObject, @"There should be no selected annotation"); // First selection - [_mapView selectAnnotation:annotation animated:NO]; + [_mapView selectAnnotation:annotation animated:NO completionHandler:nil]; selectionCount++; XCTAssert(_mapView.selectedAnnotations.count == 1, @"There should only be 1 selected annotation"); @@ -190,7 +190,7 @@ static NSString * const MGLTestAnnotationReuseIdentifer = @"MGLTestAnnotationReu XCTAssert(MGLCoordinateInCoordinateBounds(point.coordinate, coordinateBounds), @"The test point should be within the visible map view"); // Select on screen annotation (DO NOT ADD FIRST). - [self.mapView selectAnnotation:point animated:YES]; + [self.mapView selectAnnotation:point animated:YES completionHandler:nil]; // Expect - the camera NOT to move. MGLCameraChangeReason reasonAfter = self.mapView.cameraChangeReasonBitmask; @@ -235,7 +235,7 @@ static NSString * const MGLTestAnnotationReuseIdentifer = @"MGLTestAnnotationReu XCTAssert(self.mapView.selectedAnnotations.count == 0, @"There should be 0 selected annotations"); - [self.mapView selectAnnotation:point animated:NO]; + [self.mapView selectAnnotation:point animated:NO completionHandler:nil]; XCTAssert(self.mapView.selectedAnnotations.count == 0, @"There should be 0 selected annotations"); } |