Commit Graph

22 Commits

Author SHA1 Message Date
Minh Nguyễn
4956c05042 [iOS] Wait for style loading, then rotation, then compass fading
Fixes #2920.
2015-11-04 13:02:32 -08:00
Justin R. Miller
48d6d039ed remove heading tests as unreliable 2015-10-27 10:43:20 -07:00
Justin R. Miller
7d8655baf3 tighten up non-location tests 2015-10-27 10:36:31 -07:00
Justin R. Miller
6eee72e677 fixes #2419: adapt iOS tests for Bitrise CI 2015-10-20 11:32:39 -07:00
Minh Nguyễn
8e8a341e28 [iOS] Dismiss authorization prompt before testing Location Services delegate methods 2015-10-16 14:58:57 -07:00
Justin R. Miller
6e1b1836f4 fixes #2611: iOS test app long press drops debug marker 2015-10-15 11:33:58 -07:00
Jason Wray
2762f53cdf [iOS] disable perfectly good tests so they stop flapping on Travis
Travis is inconsistently failing the following tests, so let's
temporarily disable them.

- `testDirectionSet`
- `testCompassTap`
- `testDirectionReset`
- `testCenterSet`
- `testDelegateRegionDidChange`

It bears repeating that these tests _only_ fail on Travis, running them
locally has always passed.

Fixes #2347
2015-09-21 13:16:30 -07:00
Adam Hunter
620e554f67 Fixes the test for setting center canceling animations. A good submit to look at for writing asynchronous tests. 2015-09-15 17:45:22 -07:00
Adam Hunter
c9b14125d8 Add test that setting the center coordinate cancels animations 2015-09-15 17:45:22 -07:00
Minh Nguyễn
c1d2292809 Increased timeout for rotation animation 2015-09-15 11:05:46 -07:00
Jason Wray
4977858f4d 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.
2015-08-25 14:59:17 -07:00
Justin R. Miller
3f99f5e712 GL is the library, SDK is the product 2015-08-21 11:01:07 -07:00
Minh Nguyễn
ac2ad993a5 Fit to coordinates
Whoever determined the boundaries of the District of Columbia did not have fit-to-bounds implementations in mind. With this change, shapes that are not unrotated rectangles fit much, much better.
2015-06-26 21:46:15 -07:00
Minh Nguyễn
1d11624efd Test fit to bounds; added MGLCoordinateBounds functions
Added a bunch of functions to work with MGLCoordinateBounds in a separate header analogous to MKGeometry.h. Added resolution-independent tests for common fit to bounds scenarios.
2015-06-25 21:54:57 -07:00
Minh Nguyễn
fc209e31c5 Reversed direction to be clockwise
For consistency with MapKit, the Google Maps SDK, and these methods’ own documentation.

Fixes #1780.
2015-06-25 10:20:48 -07:00
John Firebaugh
4ba78b6bcf Transform needs only a single TransformState 2015-06-24 13:08:36 -07:00
Jason Wray
e75e538ddb Add location tests for iOS
- Adds testDelegatesStartStopLocatingUser: Tests mapViewWillStartLocatingUser and mapViewDidStopLocatingUser delegate methods
- Adds testUserTrackingModeFollow
- Adds testUserTrackingModeFollowWithHeading (disabled because of library bug)

Fakes user location via swizzled CLLocationManager and hard-coded mock coordinates and heading.
2015-06-15 16:42:32 -07:00
Justin R. Miller
1e8a480e1b clear location services prompt if needed 2015-05-05 16:33:12 -07:00
Minh Nguyễn
f9c544a9ea Reset map view frame on every test
To counteract the call to `-insetMapView` in `-testInsetMapView`.
2015-04-24 14:27:25 -07:00
Minh Nguyễn
1dc2cbc280 Test inset MGLMapView
Verify that the ornaments hug the `MGLMapView` when it’s smaller than the view controller’s root view.
2015-04-24 13:30:50 -07:00
Justin R. Miller
b528d7cc03 fixes #830, #880: bring back iOS functional tests 2015-04-23 17:54:08 -07:00
Justin R. Miller
d4d4cd4415 move iOS code from gl-cocoa to this project 2015-02-09 18:01:40 -08:00