summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* [ios, osx] Fixed project upgrade warningsMinh Nguyễn2016-04-161-1/+1
| | | | Fixed project upgrade warnings in projects managed by gyp.
* [ios] Don't try to launch test server (#4719)John Firebaugh2016-04-151-0/+3
|
* [core] Eliminate MapDataJohn Firebaugh2016-04-151-1/+0
|
* [core] Remove MapData dependency from StyleJohn Firebaugh2016-04-152-14/+12
|
* [core] Convert MapContext to Map::Impl; eliminate indirectionJohn Firebaugh2016-04-153-27/+14
|
* [core] Clean up ThreadContext vestigesJohn Firebaugh2016-04-159-36/+14
|
* [tests] Use StubFileSource where a real FileSource is not requiredJohn Firebaugh2016-04-145-22/+22
|
* [tests] Rationalize storage testsJohn Firebaugh2016-04-1419-912/+645
| | | | Properly divide Storage tests into DefaultFileSource, OnlineFileSource, and HTTPFileSource tests.
* [core] Remove internal threading from OnlineFileRequestJohn Firebaugh2016-04-141-0/+3
| | | | There's no need to do the work that OnlineFileRequest does on a separate thread from the DefaultFileSource thread, and having AsyncTasks proxy to other tasks across a thread boundary adds needless complexity.
* [core] Render from the main threadJohn Firebaugh2016-04-1410-69/+82
| | | | Do not create a thread for the MapContext anymore.
* [core] Demote "Unable to make space for entry" message from Warning to Debug ↵John Firebaugh2016-04-141-6/+2
| | | | (#4708)
* [darwin] use CFRunLoopSourceInvalidate() to also cancel any pending ↵Konstantin Käfer2016-04-121-0/+27
| | | | AsyncTask invocations
* [test] This "very unlikely" condition in fact happens regularly in CI (#4679)John Firebaugh2016-04-111-1/+1
|
* [ios] Run core unit tests in CIJohn Firebaugh2016-04-1115-88/+100
|
* [build] Refactor and simplify build systemJohn Firebaugh2016-04-074-65/+8
| | | | | | | | | | | | | | * Main gyp files are now standardized as platform/<platform>/platform.gyp. * Each platform gyp file defines appropriate loop_lib and headless_lib variables. * Each platform gyp file includes mbgl.gypi, which defines base targets which may be useful to all platforms. * CI targets are consistent across platforms: `make $(PLATFORM) && make test-$(PLATFORM)`. * Renamed the "linux" test app to "glfw". It's now built in OS X CI. * Android build flakiness is fixed. * iOS CI builds the bench and iosapp targets. * Mesa version is now in one place. * CI scripts use bash "strict mode" and correct error handling. * All build output goes to the build directory. * Removed vestigial iOS/OS X/Android Travis scripts.
* [core] make sprite metrics checking stricterAnsis Brammanis2016-03-311-30/+13
| | | | | | - check that sprite metrics are within the bounds of the sprite. fix #714 - make sprite metrics problems Errors instead of Warnings - check for negative image width, height
* Merge branch 'release-ios-3.2.0-android-4.0.0'John Firebaugh2016-03-303-4/+96
|\
| * [core] Set schema version to 3 after upgradingJohn Firebaugh2016-03-281-0/+8
| | | | | | | | | | | | The migration was upgrading the schema, but not the schema version. As a result, the (expensive) migration was running every time an OfflineDatabase was constructed with a v2 database. Fixes #4501
| * [core] Stop download when tile limit is reachedJesse Bounds2016-03-171-4/+60
| | | | | | | | | | | | | | | | The tile limit guard (when used) stops a download from continuing when the tile limit is reached. This wraps the guard in a method and employs it in both places currently necessary to ensure the guard has a chance to function. Tests have been updated to ensure the fix works for a less trivial tile limit scenario.
| * [core] Implement a vacuum strategy for the offline databaseJohn Firebaugh2016-03-172-0/+28
| | | | | | | | Enable `PRAGMA auto_vacuum = INCREMENTAL`, and perform a `PRAGMA incremental_vacuum` when deleting an offline region.
* | [core] Unify FileRequest and WorkRequestJohn Firebaugh2016-03-2415-45/+45
| |
* | [core] Allow the use of special characters in property field namesJohn Firebaugh2016-03-231-4/+4
| | | | | | | | Fixes #4336
* | [tests] Mark some tests as requiring serverThiago Marcos P. Santos2016-03-233-5/+5
| | | | | | | | | | | | Otherwise they will fail on iOS with connection error. Fixex #4434
* | [tests] fix make iproj copy phase for unit text fixturesJason Wray2016-03-221-2/+1
| |
* | [tests] Tweak offline tests to work on iOSJohn Firebaugh2016-03-221-17/+8
| |
* | [ios] make unit tests work on iOS and iOS SimulatorKonstantin Käfer2016-03-2222-40/+182
| |
* | [test] rearrange test files so they're not in the fixtures folderKonstantin Käfer2016-03-2254-92/+91
| |
* | [test] remove crc64 and compare imagesKonstantin Käfer2016-03-2214-57/+46
| | | | | | | | boost's crc64 breaks on iOS
* | [tests] Add utest to make sure prior expiration time is being respectedThiago Marcos P. Santos2016-03-171-0/+35
| |
* | [core] Get rid of MapData::{get,set}animationTimeBruno de Oliveira Abinader2016-03-181-6/+12
| |
* | [core] Move class handling to StyleBruno de Oliveira Abinader2016-03-181-2/+14
| |
* | [core] Check for NaNs in mbgl::util::{min,max,clamp}Bruno de Oliveira Abinader2016-03-182-0/+43
| |
* | [core] Always return wrapped coordinatesBruno de Oliveira Abinader2016-03-141-0/+6
| | | | | | | | | | | | This fixes an issue in both iOS and Android when e.g. adding a marker on both sides of the dateline border in Taveuni island, the marker in one of the sides would have an out-of-bounds longitude.
* | [core] Simplify LatLng::unwrapForShortestPath usageBruno de Oliveira Abinader2016-03-141-2/+70
| | | | | | | | | | | | | | | | | | | | Simplify LatLng::{wrap,unwrapForShortestPath} code, avoiding duplicated code between Transform::{latLngToScreenCoordinate,easeTo,flyTo}. Added unit tests for camera usage in Transform to detect cases like e.g. crossing the antimeridian as a shortest path between two coordinates. Transform::flyTo precision loss to be handled in #4298.
* | [core] Implement LatLng::null()Bruno de Oliveira Abinader2016-03-131-0/+3
| |
* | [core] Harden Transform anchor & padding usageBruno de Oliveira Abinader2016-03-131-4/+77
|/ | | | | Use optional values for anchor & padding in Map and Transform functions instead of NaNs. Added unit tests to stress some edge cases.
* [core] Deactivate offline region upon completionMinh Nguyễn2016-03-111-6/+15
|
* [core] Fix non-anchored Transform::setAngleBruno de Oliveira Abinader2016-03-111-12/+17
| | | | | This reverts a line change from b33b2f15, because we explicitely want the anchor to be invalid.
* [core] Fix screen coordinates when crossing the antimeridian (#2)Bruno de Oliveira Abinader2016-03-111-0/+16
| | | | Added missing case. Really fixes #4155 this time.
* [core] Make vec{2,3,4} operator bool explicitBruno de Oliveira Abinader2016-03-111-3/+3
|
* [core] Fix screen coordinates when crossing the antimeridianBruno de Oliveira Abinader2016-03-101-0/+22
| | | | | | | | | If the center and point coordinates are not in the same side of the antimeridian, we need to unwrap the point longitude to make sure it can still be seen from the visible side of the antimeridian that is opposite to the center side. Fixes #4155.
* [core] Check for NaNs in EdgeInsetsBruno de Oliveira Abinader2016-03-101-2/+36
|
* [core] Coordinate wrapping fixesBruno de Oliveira Abinader2016-03-102-6/+38
| | | | | | | | | | | | | | | - Make returning LatLngs unwrapped by default. - PointAnnotation and ShapeAnnotation are always wrapped so they can be selected via intersection from the visible tile boundaries. - Fixes LatLng::wrap() calculation. - Fixes LatLng::unwrapForShortestPath() calculation. The new unwrapForShortestPath algorithm unwraps the start coordinate either forwards or backwards depending on the end coordinate value, so we can always cross the antimeridian when needed and still obtain a wrapped end coordinate in the end. Fixes #4214.
* [core] Deactivate OfflineDownload when the tile count limit is hitJohn Firebaugh2016-03-091-1/+13
| | | | This is a better behavior than sending hundreds or thousands of tileCountLimitExceeded notifications.
* [core] Fix offline status reporting regressionsJohn Firebaugh2016-03-081-12/+38
| | | | | | The core of the change is ensuring that ensureResource doesn't release Zalgo: it should be consistently async, rather than async in the case that the resource doesn't exist in the database, but sync if it does. This ensures that status is reported in a more consistent sequence, regardless of the database state.
* [core] Fix RunLoop::run() behavior when called a second timeJohn Firebaugh2016-03-081-0/+21
|
* [tests] Add utest for NetworkStatus::Online/OfflineThiago Marcos P. Santos2016-03-081-0/+33
|
* [core] Remove goOffline() from DefaultFileSourceThiago Marcos P. Santos2016-03-081-1/+4
| | | | Use the newly added NetworkStatus::Set().
* [core] Ensure OfflineRegionStatus::downloadState is accurately reportedJohn Firebaugh2016-03-071-0/+31
|
* [core] explicitly initialize a few fields to nullKonstantin Käfer2016-03-041-2/+2
|