summaryrefslogtreecommitdiff
path: root/test/api
Commit message (Collapse)AuthorAgeFilesLines
* [tests] Accept [C|c]onnect as error messageThiago Marcos P. Santos2016-04-201-1/+1
| | | | Qt will spit "Connect" instead of "connect"
* [tests] Use StubFileSource where a real FileSource is not requiredJohn Firebaugh2016-04-144-20/+20
|
* [core] Render from the main threadJohn Firebaugh2016-04-146-16/+69
| | | | Do not create a thread for the MapContext anymore.
* [ios] Run core unit tests in CIJohn Firebaugh2016-04-111-53/+0
|
* [build] Refactor and simplify build systemJohn Firebaugh2016-04-071-9/+1
| | | | | | | | | | | | | | * 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.
* [ios] make unit tests work on iOS and iOS SimulatorKonstantin Käfer2016-03-223-2/+12
|
* [test] rearrange test files so they're not in the fixtures folderKonstantin Käfer2016-03-227-11/+11
|
* [core] Remove goOffline() from DefaultFileSourceThiago Marcos P. Santos2016-03-081-1/+4
| | | | Use the newly added NetworkStatus::Set().
* Revert "[gl] Updated CustomLayer tests"John Firebaugh2016-02-181-24/+30
| | | | | | These tests are intended to reflect how someone using the custom layer feature might actually write their callbacks. Therefore the callbacks should not use mbgl-specific classes. This reverts commit 69112a2a09404cc0ee7089a9f1f81ff1feac586f.
* [gl] Updated CustomLayer testsBruno de Oliveira Abinader2016-02-181-26/+24
|
* [tests] Add test for Map::updatePointAnnotationJohn Firebaugh2016-02-121-3/+21
|
* [core] Reimplement existing caching within an offline-capable database schemaJohn Firebaugh2016-02-101-0/+50
|
* [core] Moving caching logic to DefaultFileSourceJohn Firebaugh2016-02-104-15/+15
| | | | This results in OnlineFileSource containing precisely the logic we want for reuse by OfflineFileSource, and no more.
* [core][ios][osx][android] make SpriteImage accept PremultipliedImageAnsis Brammanis2016-01-191-1/+1
| | | | | | | | | | | | the SpriteImage constructor signature changes from SpriteImage( uint16_t width, uint16_t height, float pixelRatio, std::string&& data, bool sdf = false); to SpriteImage(PremultipliedImage&&, float pixelRatio, bool sdf = false)
* [test] ensure static rendering finishes when a tile can't be loadedKonstantin Käfer2016-01-151-0/+63
|
* [core] Eliminate platform::assetRoot()John Firebaugh2016-01-131-3/+4
| | | | I regenerated assets.zip so that all file paths have an `assets/` prefix, as the Android AssetFileSource implementation asserts, and removed `TEST_DATA` from the paths.
* [core] Simplify asset:// implementationJohn Firebaugh2016-01-133-15/+15
| | | | | | | | * Move asset:// URL handling to DefaultFileSource. * AssetFileSource implements FileSource interface and follows familiar implementation patterns. * Move default implementation to platform/default, zip implementation to platform/android. * Don't bother with modified / expires / etag -- assets are not cached so it doesn't matter. * Don't bother with interleaving individual IO calls on the implementation thread. That adds a lot of complexity for very little benefit.
* [test] allow aborting rendering after a timeoutKonstantin Käfer2016-01-081-0/+4
|
* [tests] Test with OnlineFileSourceJohn Firebaugh2015-12-235-22/+22
| | | | | When we introduce OfflineFileSource, the behavior of existing tests should not change.
* [core] Fixed annotation icon replacementMinh Nguyễn2015-12-151-6/+25
| | | | Another pass at #3146, including a unit test.
* [core] Reduce custom layer API to lowest common denominatorJohn Firebaugh2015-12-111-11/+14
|
* [core] Custom layersJohn Firebaugh2015-12-092-38/+100
|
* [core] add namespace comment to closing braceKonstantin Käfer2015-12-031-1/+1
|
* [core] Fix std::move() misuse that disables copy elisionKonstantin Käfer2015-12-032-3/+3
|
* [core] Map::setSprite ⇢ Map::addAnnotationIconJohn Firebaugh2015-12-011-4/+4
| | | | Fixes #3084
* [tests] Fix/improve Asset utestsThiago Marcos P. Santos2015-12-012-10/+26
| | | | | | ASSET=zip make test-* was broken and now works. Also added a test stressing concurrent file access.
* [tests] Don't use icons from the style for annotationsJohn Firebaugh2015-11-301-17/+13
|
* [core] Fix image type of Map::renderStillJohn Firebaugh2015-11-253-9/+9
| | | | | | | It's a premultiplied image. This implies that we were misusing encodePNG in most cases, as we were passing premultiplied pixels which were then interpreted as unmultiplied. I changed encodePNG to accept premultipled pixels, and unpremultiply in the implementations.
* [test] Add pixelmatch; use in annotation testsJohn Firebaugh2015-11-251-21/+26
|
* [core] Rewrite image handlingJohn Firebaugh2015-11-253-23/+16
| | | | | | * Consolidate Image and StillImage * Typecheck unassociated vs premultiplied images * Rewrite default platform image decoding implementation
* Rewrite CustomSpriteImages testJohn Firebaugh2015-11-181-0/+14
| | | | Previous test was invalid; Map::setSprite is only for annotations.
* [core] Eliminate use of ClassProperties for paintJohn Firebaugh2015-11-101-7/+6
|
* [core] Don't crash when removing a shape annotation whose layer was never ↵John Firebaugh2015-10-301-0/+12
| | | | created
* [core] Style-sourced shape annotation propertiesJohn Firebaugh2015-10-221-0/+15
| | | | | This introduces the possibility to source the type and style properties of a shape annotation from a designated layer in the style.
* [core] Introduce StyleLayer subclassesJohn Firebaugh2015-10-221-26/+14
|
* [core] Rationalize style property classes: <type>{Paint,Layout}PropertiesJohn Firebaugh2015-10-221-8/+8
|
* [core] Remove shape layers from the style (fixes #2405)John Firebaugh2015-10-201-2/+27
|
* Install RapidJSON from masonJohn Firebaugh2015-10-011-1/+1
|
* Add test for removeAnnotationJohn Firebaugh2015-09-281-0/+16
|
* Rewrite annotation invalidation strategyJohn Firebaugh2015-09-281-28/+68
| | | | | | | | | | | | | | | | First, move style mutation code out of StyleParser and into AnnotationManager, coalescing it with the mutation code for shape layers. Second, allow AnnotationManager to keep track of stale tiles entirely internally. There's no reason to pass sets of TileIDs around. Third, correct the logic for invalidating the shape source. Since AnnotationManager does not track shape invalidations on a tile-by-tile basis, don't try to invalidate the shape source tile-by-tile. Fixes #1675 Fixes #2322 Fixes #2095
* Add some shape annotation testsJohn Firebaugh2015-09-281-0/+63
|
* Ensure that LiveTileData can be reparsedJohn Firebaugh2015-09-281-15/+13
| | | | | | | | | | Annotation tiles may become partially parsed just like regular tiles, for example if a point annotation is added to the map before the style's sprite has been loaded. In such cases, they need to be reparsed or the annotation will not be rendered. Previously, the code path for reparsing would be short-circuited by a dynamic_cast<VectorTileData*> followed by a null check. This commit removes that case and adds (back) a virtual reparse method to the TileData interface.
* Consolidate test-suite rendering harnesses (#2236)John Firebaugh2015-09-042-2/+2
|
* Add unit tests for addPointAnnotations()Thiago Marcos P. Santos2015-07-101-0/+36
| | | | This test would have caught #1874
* Make pixelRatio constant across a Map object lifetimeKonstantin Käfer2015-07-083-11/+9
| | | | also moves framebuffer size out of TransformState into its own object
* Add tests for renderStill() misuseThiago Marcos P. Santos2015-06-161-0/+60
|
* Replace mbgl::util::make_unique<> with std::make_unique<>Konstantin Käfer2015-05-262-2/+2
|
* Add callback for error notifications on renderStill()Thiago Marcos P. Santos2015-05-221-2/+2
| | | | | | | | | The callback will be called when any of the resources requested from the network failed to load. There is not recovery implemented yet, so the closest thing to reseting the Map object and reloading all the resources would be setting a new style.
* Resize view from map threadJohn Firebaugh2015-04-281-2/+2
|
* Remove Map::start/stopJohn Firebaugh2015-04-282-12/+5
| | | | | | Both Android and iOS now use pause/resume. The map thread is always running, and be able to receive messages. When paused, it will just refuse to render.