summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJason Wray <jason@kulturny.com>2015-07-22 11:41:58 -0400
committerJason Wray <jason@kulturny.com>2015-08-25 14:59:17 -0700
commit4977858f4d5cc181ab8204c472b3ee84c37245a4 (patch)
tree5f0e43ff297442c15a7bb4e254618818ed43e605 /test
parent92d9308eb8a996ad2d85268e36fc04caeec8f5d6 (diff)
downloadqtlocation-mapboxgl-4977858f4d5cc181ab8204c472b3ee84c37245a4.tar.gz
Fix testUserTrackingModeFollow test to accept location permissions ask
I thought that the tests were bypassing the permissions dialog, but it turns out that was only half correct: we were not actually asking for `always` location permission in MBGL.
Diffstat (limited to 'test')
-rw-r--r--test/ios/MapViewTests.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ios/MapViewTests.m b/test/ios/MapViewTests.m
index fadbbae601..f4ae501d7e 100644
--- a/test/ios/MapViewTests.m
+++ b/test/ios/MapViewTests.m
@@ -544,7 +544,7 @@
- (void)testUserTrackingModeFollow {
tester.mapView.userTrackingMode = MGLUserTrackingModeFollow;
- [tester waitForTimeInterval:1];
+ [tester acknowledgeSystemAlert];
XCTAssertEqual(tester.mapView.userLocationVisible,
YES,
@@ -570,7 +570,7 @@
- (void)testUserTrackingModeFollowWithHeading {
tester.mapView.userTrackingMode = MGLUserTrackingModeFollowWithHeading;
- [tester waitForTimeInterval:1];
+ [tester acknowledgeSystemAlert];
XCTAssertEqual(tester.mapView.userLocationVisible,
YES,