From 7952ccbdd074225c3dcdff37766573e2a5537ab8 Mon Sep 17 00:00:00 2001 From: Julian Rex Date: Sat, 6 Oct 2018 01:27:28 -0400 Subject: [macos] Adjusted test due to bug fix. Added missing delegate method. Delegate method name still needs work :) --- platform/macos/test/MGLAnnotationTests.m | 2 +- platform/macos/test/MGLMapViewDelegateIntegrationTests.swift | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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) {} -- cgit v1.2.1