summaryrefslogtreecommitdiff
path: root/platform/ios/test/MGLAnnotationViewTests.m
diff options
context:
space:
mode:
Diffstat (limited to 'platform/ios/test/MGLAnnotationViewTests.m')
-rw-r--r--platform/ios/test/MGLAnnotationViewTests.m8
1 files changed, 4 insertions, 4 deletions
diff --git a/platform/ios/test/MGLAnnotationViewTests.m b/platform/ios/test/MGLAnnotationViewTests.m
index 59f6956a95..212de9a405 100644
--- a/platform/ios/test/MGLAnnotationViewTests.m
+++ b/platform/ios/test/MGLAnnotationViewTests.m
@@ -74,7 +74,7 @@ static NSString * const MGLTestAnnotationReuseIdentifer = @"MGLTestAnnotationReu
XCTAssertTrue(testCalloutView.didCallDismissCalloutAnimated, @"callout view was not dismissed");
[_mapView removeAnnotation:_annotationView.annotation];
-
+
XCTAssert(_mapView.annotations.count == 0, @"number of annotations should be 0");
XCTAssertNil(_annotationView.annotation, @"annotation property should be nil");
}
@@ -82,14 +82,14 @@ static NSString * const MGLTestAnnotationReuseIdentifer = @"MGLTestAnnotationReu
- (MGLAnnotationView *)mapView:(MGLMapView *)mapView viewForAnnotation:(id<MGLAnnotation>)annotation
{
MGLAnnotationView *annotationView = [mapView dequeueReusableAnnotationViewWithIdentifier:MGLTestAnnotationReuseIdentifer];
-
+
if (!annotationView)
{
annotationView = [[MGLAnnotationView alloc] initWithReuseIdentifier:MGLTestAnnotationReuseIdentifer];
}
-
+
_annotationView = annotationView;
-
+
return annotationView;
}