Commit Graph

43 Commits

Author SHA1 Message Date
Mikhail Pozdnyakov
19cbad2261 [ios] Fix testForRaisingExceptionsOnStaleLayerObject test 2019-09-18 16:21:59 +03:00
Julian Rex
fc7d2938dd [ios] Fixed test name (since validAccessToken has been removed in another PR). Added some more asserts. (#15643) 2019-09-17 16:18:14 -04:00
Julian Rex
a99240a54f [ios] Add support for running tests (that require an access token) individually. (#15629) 2019-09-16 21:30:54 -04:00
Nadia Barbosa
8331b7adfe [ios, macos] Introduce custom drawing overlays for MGLMapSnapshotter 2019-09-16 12:55:36 -07:00
Julian Rex
99492ff5e7 [ios] Add custom XCTestSuite to check for "pending" tests and tests requiring a valid access token. (#15477) 2019-09-13 23:20:17 -04:00
Mikhail Pozdnyakov
5207a36074 [core, ios, macos] SDK objects should hold weak pointers to the core style objects (#15539) 2019-09-09 23:55:38 -04:00
Julian Rex
96581fd3ff [core, ios] Call transitionFinishFn for jumpTo. (#15473) 2019-09-05 00:21:58 -04:00
Julian Rex
4010b1d256 [ios] Added pending completion blocks (#15122) 2019-08-25 01:02:29 -04:00
Julian Rex
c3cd9002f0 [ios] Fix integration tests failing on iOS 9 (due to UIWindow deallocation), and random fails waiting for rendering. (#15433) 2019-08-21 14:23:33 -04:00
Julian Rex
c0cd8d021d [ios] Adds annotation selection tests with rotation & scaling of the map (#15123) 2019-08-20 10:51:14 -04:00
Aleksandar Stojiljkovic
ae38a22dc1 [core] Fix collision with content insets
Viewport center offset usage was wrongly submitted in #14664. It was part of alternative approach that used enlarged viewport. Existing and added tests were not sufficient to spot the regression, since the collision check padding is usually larger than the center offset x and y. Annotation picking has tolerance of only 10 pixels but no annotation integration test was using content insets.

Usage of offset is not needed because `posMatrix` in e.g. `CollisionIndex::projectPoint(const mat4& posMatrix, const Point<float>& point)` already incorporates center offset (projection matrix) and the code in current master was just offsetting all by the value.

Modified [ios] MGLAnnotationViewIntegrationTests.testSelectingAnnotationWithCenterOffset to use different insets. It verifies the fix.

Fixes [iOS] Annotations are not selectable (added via iosapp menu) #15106:

In case of #15106, view's original content insets is {top:88, bottom:34}, causing that center offset is {x:0, y:27} and selection with tolerance of 10 wouldn't select annotation.
After tapping the view, so that the header gets removed, view's content insets get changed to {top:44, bottom:34}, center offset is {x:0, y:5} and annotation selection would work, as described in #15106.

Fixes: #15106
2019-07-17 16:13:33 -07:00
Heather Stenson
5f6f20e667 [ios, macos] Change "map ID" to "tileset ID" (#15116)
* map id --> tileset id

* styles map id -> style url

* update changelog
2019-07-16 18:36:07 -07:00
Jason Wray
8a9567e072 [ios, macos] Deprecate methods in favor of new completion handler versions 2019-06-26 12:18:22 -07:00
Minh Nguyễn
f7f74a6deb [ios, macos] Added completion handlers to animated MGLMapView methods 2019-06-21 17:45:36 -07:00
Julian Rex
c40b7279a2 [ios] Fix failing annotation selection integration tests (#14976) 2019-06-21 20:34:33 -04:00
Alexander Shalamov
a71ccae141 [ios] Add integtation test that verifies MGLMapViewImpl size 2019-06-05 00:03:13 -07:00
Julian Rex
c7d53676d0 [ios, core] Updates project for iOS SDK 12.2 / Always use vendored optional (#14241) 2019-03-27 09:58:41 -04:00
Jason Wray
d0ffaa4245 [ios] Reset access token state after running tests 2019-03-07 11:36:04 -08:00
Julian Rex
405e20e3c8 [ios] CADisplayLink method now takes a parameter as required. (#14018) 2019-03-01 16:04:37 -05:00
Jason Wray
67e5761e72 [ios] Update more URLs to docs.mapbox.com/ios 2019-01-25 11:57:45 -08:00
Nadia Barbosa
332c1ac96a [ios] Fix links in documentation
[ios] Update to docs.mapbox.com

Update links
2019-01-23 13:16:28 -08:00
Julian Rex
b460efdf00 [ios] Partially offscreen annotations (without callouts) are no longer moved on-screen (#13727) 2019-01-22 17:45:06 -05:00
Heather Stenson
b7cd091ce1 [ios] - update links to new API doc format (#13694) 2019-01-10 12:54:08 -08:00
Julian Rex
1c7cd243c4 [core,ios,macos] Updates default styles to streets v11, etc. (#13585) 2018-12-18 16:00:19 -05:00
Alexander Shalamov
b6b1067caf [ios, darwin] Make MGLFeature.attributes non-nullable and add integration test
Enforce non-nullable semantics for MGLFeature.attributes, to avoid construction of invalid mbgl::Feature properties
from nil NSDictionary object and align with public SDK property definition.

Integration test "testShapeSourceWithLineDistanceMetrics" is added to verify that MGLFeature is correctly converted.

Fixes issue #13378
2018-12-13 19:38:50 +02:00
Jason Wray
b6909748c1 [ios, tests] Bump integration tests timeout to 10s 2018-11-02 17:49:32 -04:00
Chris Loer
8368bd4878 [tests, darwin] Standardize on 10 second timeout for map loading
5 second timeouts have been intermittently failing on CI.
2018-10-17 13:14:44 -07:00
Nadia Barbosa
7b243392e3 [ios] Add delegate method to specify the user location annotation’s position
Update method name

More API drafting

Add deprecation flag

Add Swift delegate integration test

Update method name and documentation

Update deprecation notices

Update method name

Offset anchor point relative to contentFrame

Update docs

Only run through switch statement if delegate is unimplemented

Account for content inset + refactor logic

Adjust edgePaddingForFollowing

Fix Swift delegate integration test

Set up integration test

Set up test location manager

.

Remove unused file reference from test

Return CGPoint value from delegate method within integration test setup

Test anchor points

Make updateUserLocationAnnotationView public

Refactor test

Update test location manager

Changelog entry

Doc fixes
2018-10-02 18:28:53 -04:00
Jason Wray
1ce31af289 [ios] Bump more test timeouts for Xcode 10 sluggishness 2018-09-26 14:12:57 -07:00
Julian Rex
66e95ac2ab [ios] Move pending test check into invokeTest (#12964) 2018-09-25 13:31:47 -04:00
Jason Wray
737ebed7d5 [ios, tests] Bump most waitForExpectationsWithTimeout's to 5s
[skip firebase]

Bump MGLOfflineStorageTests timeouts to 5 seconds
2018-09-20 14:57:07 -07:00
Julian Rex
315a9e3cdf [ios, macos] Call snapshotter (Obj-C) completion block on dealloc/cancel if snapshot hasn't finished. (#12355) 2018-09-05 11:53:12 -04:00
Julian Rex
3710ef8810 [iOS] Update annotation view touch handling (with offsets) (#12234) 2018-07-09 10:01:11 -04:00
Julian Rex
56ab3318a3 [ios] [macos] Added -[MGLSnapshot coordinateForPoint:] and associated test. 2018-07-05 18:50:21 +02:00
Julian Rex
87143a355d [ios] Fix for integration tests not running on iOS 9. (#12145) 2018-06-18 14:24:14 -04:00
Chris Loer
6eee872955 [test,ios] Disable multiple mapsnapshotter test.
8 simultaneous mapsnapshotter test periodically deadlocks in simulator.
Also, increase timeouts to decrease chance of spurious test failure.
2018-06-04 11:32:20 -07:00
Chris Loer
af4efd4fa7 [ios, test] Add MGLMapSnapshotter integration tests. 2018-06-04 11:32:20 -07:00
Julian Rex
5e65cb7812 [ios, macos] Added macro to handle pending iOS tests (rather than disabling via scheme) (#11806) 2018-05-24 00:43:29 -04:00
Julian Rex
bef2a7ccb6 [ios,macos] Fix for infinite loop crash when setting shape to nil in MGLMapViewDelegate methods (#11614) 2018-05-21 14:14:58 -04:00
Julian Rex
1f4e3e0f6e [ios, macos] Raise exceptions for empty expression stops dictionaries (#9539) 2018-04-26 12:40:26 -04:00
Julian Rex
80474b24f2 [ios] Refactor integrations tests 2018-04-10 14:56:38 -04:00
Asheem Mamoowala
099fcc3b3c Use a host interface for CustomLayer instead of function pointers (#11553)
Use a host interface for CustomLayer instead of function pointers

Co-authored-by: Julian Rex <julian.rex@mapbox.com>
2018-04-02 16:15:25 -07:00
Andrew Kitchen
2c48871c06 Adds an integration test harness to the iOS project
This will allow us to write lightweight integration tests between MGLMapView and the core renderer.
Also includes a test for the recent custom layer memory fix, reverting the fix in order to demonstrate the failing test.
2018-01-19 20:28:57 -05:00