summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Rex <julian.rex@mapbox.com>2018-10-06 01:27:28 -0400
committerJulian Rex <julian.rex@mapbox.com>2018-10-06 01:27:28 -0400
commit7952ccbdd074225c3dcdff37766573e2a5537ab8 (patch)
tree48c3bab44cc5642ddad18ef7f19ba6cb0ce57d97
parenta1cb3c7003341386252ef86ff0deec427ed1084d (diff)
downloadqtlocation-mapboxgl-upstream/jrex/annotation-selection-delegate.tar.gz
[macos] Adjusted test due to bug fix. Added missing delegate method. Delegate method name still needs work :)upstream/jrex/annotation-selection-delegate
-rw-r--r--platform/macos/test/MGLAnnotationTests.m2
-rw-r--r--platform/macos/test/MGLMapViewDelegateIntegrationTests.swift2
2 files changed, 3 insertions, 1 deletions
diff --git a/platform/macos/test/MGLAnnotationTests.m b/platform/macos/test/MGLAnnotationTests.m
index 36a7aef9f0..9657ae0a44 100644
--- a/platform/macos/test/MGLAnnotationTests.m
+++ b/platform/macos/test/MGLAnnotationTests.m
@@ -11,7 +11,7 @@
- (void)setUp
{
[super setUp];
- _mapView = [[MGLMapView alloc] initWithFrame:CGRectMake(0, 0, 64, 64)];
+ _mapView = [[MGLMapView alloc] initWithFrame:CGRectMake(0, 0, 256, 256)];
_mapView.delegate = self;
}
diff --git a/platform/macos/test/MGLMapViewDelegateIntegrationTests.swift b/platform/macos/test/MGLMapViewDelegateIntegrationTests.swift
index 00635d97eb..e2bb28bc2d 100644
--- a/platform/macos/test/MGLMapViewDelegateIntegrationTests.swift
+++ b/platform/macos/test/MGLMapViewDelegateIntegrationTests.swift
@@ -29,6 +29,8 @@ extension MGLMapViewDelegateIntegrationTests: MGLMapViewDelegate {
func mapView(_ mapView: MGLMapView, shapeAnnotationIsEnabled annotation: MGLShape) -> Bool { return false }
+ func mapView(_ mapView: MGLMapView, shouldExposeAnnotationInResponseToUserSelection annotation: MGLAnnotation) -> Bool { return true }
+
func mapView(_ mapView: MGLMapView, didDeselect annotation: MGLAnnotation) {}
func mapView(_ mapView: MGLMapView, didSelect annotation: MGLAnnotation) {}