summaryrefslogtreecommitdiff
path: root/test/fixtures
Commit message (Collapse)AuthorAgeFilesLines
* [tests] Add unit tests for query features fitersThiago Marcos P. Santos2016-10-051-0/+61
|
* [core] add ability to render to offscreen texturesKonstantin Käfer2016-09-274-0/+0
|
* [tests] Add tests for Map::[add|remove]ImageThiago Marcos P. Santos2016-09-223-0/+25
|
* [core] do not render layers that are outside their zoom rangeKonstantin Käfer2016-09-203-0/+0
| | | | So far, we didn't properly disable layers that are outside the zoom range. This means that we rendered layers that should not have been rendered, albeit we didn't make any attempt to load tiles for those layers. However, when zooming in/out, existing tiles might already have been loaded in the source which continued to be rendered. In most cases they weren't actually visible because either the matrices weren't updated, or the clip IDs weren't set so that they would be "rendered" off-screen and clipped completely. In any case, we did way too much work.
* [tests] Add v3 & v4 database migration testsJason Wray2016-09-144-0/+0
|
* [core] Fix updates of line and fill annotationsJohn Firebaugh2016-08-294-0/+0
|
* [core] Emit MapChangeDidFailLoadingMap when the style cannot be loaded or parsedThiago Marcos P. Santos2016-08-241-2/+2
| | | | | Currently this signal is never emitted, which can cause the Still mode to starve in case of an invalid style or failed request.
* [core] set correct depth values for CustomLayer so compositing worksKonstantin Käfer2016-08-222-0/+0
|
* [tests] Add tests for shape overlays crossing the antimeridianJesse Bounds2016-08-192-0/+0
| | | | | | | | | | | | | | | | This adds two tests: AntimeridianAnnotationSmall: Test that a shape that is represented with +-180 longitudinal values is drawn spanning the antimeridian. In other words, it is rendered as a "small" shape as opposed to one that spans around the world to reach the other side of the antimeridian. This test is currently failing at the time of this commit. AntimeridianAnnotationLarge: Test that a shape that is represented with points that do not cross the +-180 boundary is rendered as a "large" shape. In other words, it is rendered by wrapping around the world to reach the other side of the meridian. This test is currently passing at the time of this commit.
* CJK overflow - update to match gl-shader (#5908)Amy Lee Walton2016-08-117-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * update vertex array ushorts * update atlas size * testing latest cjk test-suite branch * update shader ref * update shaders * update icon buffer * shaders * updated tests * buffer fix * updated make tests * annotation expected updates * final push * final fonts * a_data1 removal * remove cjk-mixed test * hiring threshold for cjk-chinese * update to new test suite * Rename a_data2 to a_data in sdf and icon shaders * update test-suite sha
* [core] don't crash when the version number is not a numberKonstantin Käfer2016-07-202-0/+8
|
* [core] fix crash when the style JSON doesn't have an object at its rootKonstantin Käfer2016-07-202-0/+8
|
* [core] Restored shape annotation z-orderMinh Nguyễn2016-07-181-0/+0
| | | | | | Shapes are once again always added to the top z-index. Fixes #5691.
* [core] geometry@0.8.0 / geojsonvt@6.0.0 (#5514)Young Hahn2016-07-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | * [core] geometry.hpp 0.8.0 * geojsonvt @ 6.0.0 * Update platform deps, build scripts * Perf optimizations/cleanup * Rebase in geometry@080 * D.R.Y. etc * Ensure fill annotation geometries have closed rings. * Optimizations * Update to geojsonvt @ 6.1.0 for clean handoff between geojson parsing and geojsonvt * Apply close multi/poly geoms for line annotations as well
* [test] Added max zoom annotation testsBruno de Oliveira Abinader2016-06-282-0/+0
|
* [core, node] Implement bindings for addSourceJohn Firebaugh2016-06-242-2/+2
|
* [core, node] Implement bindings for addLayerJohn Firebaugh2016-06-2420-20/+20
|
* [core] Rewrite style parsing logic for reuse in node bindingsJohn Firebaugh2016-06-2112-12/+12
|
* [tests] Add memory testsThiago Marcos P. Santos2016-06-211-0/+0
| | | | | | | | | | Simple tests that will render a raster and a vector map and hopefully the valgrind bot will detect something wrong if any. The other test will look for application lifetime leaks that cannot be detected with valgrind. It can also detect GL leaks if they are very expressive. A threshold is needed because of memory will grow anyway due to fragmentation.
* [tests] Add resources for rendering offlineThiago Marcos P. Santos2016-06-2112-43/+5
| | | | | | | | The StupFileSource of the memory test will do the rendering completely offline with a vector tile that is densly populated with features and a raster tile of the same region. The styles are streets and satellite respectivelly.
* [core] Avoid unnecessary work when a symbol annotation is updatedJohn Firebaugh2016-06-172-0/+0
| | | | In particular, if only the geometry changes, don't cascade and recalculate the style.
* [tests] Add basic tests for Map::{add,remove}LayerJohn Firebaugh2016-06-022-0/+0
|
* [tests] Tweak LineAnnotation test so that it reveals a bug; fix the bugJohn Firebaugh2016-06-021-0/+0
|
* [core] port outlinepattern for fill-pattern anti-aliasing from gl-js to nativeMolly Lloyd2016-04-282-1/+2
| | | | | | | | | | | | | | add outlinepattern shader class to relevant files add outlinepattern code to painter_fill.cpp add outlinepattern code to fill_bucket refactor painter_fill, fix tests fix merge conflicts and setDepthSublayer update render test to no antialiasing so travis will be happy
* [tests] Rationalize test fixtures (#4834)John Firebaugh2016-04-2519-6/+71
| | | Place them in a directory corresponding to the test .cpp file name.
* Merge branch 'release-ios-3.2.0-android-4.0.0'John Firebaugh2016-03-301-0/+0
|\
| * [core] Implement a vacuum strategy for the offline databaseJohn Firebaugh2016-03-171-0/+0
| | | | | | | | Enable `PRAGMA auto_vacuum = INCREMENTAL`, and perform a `PRAGMA incremental_vacuum` when deleting an offline region.
* | [test] rearrange test files so they're not in the fixtures folderKonstantin Käfer2016-03-229-561/+0
| |
* | [test] remove crc64 and compare imagesKonstantin Käfer2016-03-2212-25/+0
|/ | | | boost's crc64 breaks on iOS
* [core] Limit total number of offline Mapbox tilesJohn Firebaugh2016-02-241-0/+17
|
* [tests] Add test for Map::updatePointAnnotationJohn Firebaugh2016-02-122-0/+0
|
* [core] Retry errors encountered during offline downloadsJohn Firebaugh2016-02-102-13/+16
|
* [core] Interface and implementation for offlineJohn Firebaugh2016-02-104-0/+36
|
* [core] Reimplement existing caching within an offline-capable database schemaJohn Firebaugh2016-02-1016-93/+11
|
* [core] Cache with mapbox:// tile URLsJohn Firebaugh2016-02-102-2/+2
|
* [core] Add a method for statically evaluating font stacks used by a styleJohn Firebaugh2016-02-101-0/+38
|
* [tests] Don't call the callback for cancelled responsesJohn Firebaugh2016-02-042-11/+13
| | | | | | StubFileSource gets an optional Response return type. Returning null means "cancelled; don't call the callback". Fixes #3784
* [core] Normalize only raster source tile URLsJohn Firebaugh2016-02-012-0/+16
|
* [tests] Refactor and make MockFileSource more generalJohn Firebaugh2016-02-015-128/+111
| | | | | | Now it works more like StubStyleObserver: you can assign std::functions to specific slots based on resource type. Rewrite resource loading tests in that style, making them less like integration tests of Style and more like unit tests of Source, GlyphStore, and SpriteStore.
* Cleanup std::chrono usageBruno de Oliveira Abinader2016-01-253-4/+6
| | | | Use mbgl::Duration and mbgl::{,Milli}Seconds whenever possible.
* Revert "Revert WebP support due to broken builds"Bruno de Oliveira Abinader2016-01-201-0/+0
| | | | | | | This reverts commit 6709bdcacd5a45a10b554f3f225206c9494e5e43. There was an issue with the script that removes '-lwebp' from WebP linker flags, since we're statically linking. This is now fixed.
* [core][ios][osx][android] make SpriteImage accept PremultipliedImageAnsis Brammanis2016-01-192-0/+6
| | | | | | | | | | | | 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)
* Revert WebP support due to broken buildsJohn Firebaugh2016-01-191-0/+0
| | | | This reverts commits 2010fbb0e61cbe7c0b08560118ca887fc1d7193e, a361ce47a19d37b96b48cd605c62c5ab79bba462, and d004bb275ae3ea60bb6c2febd6fa22f1f51c3993.
* [linux] Added WebP tile supportBruno de Oliveira Abinader2016-01-191-0/+0
| | | | | | | - Android support is currently disabled due to a libwebp build issue. - iOS and OS X support will appear after the next Mapbox iOS SDK release. Related: #https://github.com/mapbox/mapbox-gl-native/issues/2354
* [core] use stale glyphsKonstantin Käfer2016-01-153-0/+39
| | | | Updating glyphs is still unsupported, and there's no good use case for doing so. When we're using a stale glyph PBF, and the fresh answer contains changed to that glyph, we will continue to use the old glyph.
* [core] use stale sprite dataKonstantin Käfer2016-01-154-0/+36
| | | | This is a naïve implementation that essentially merges updated data into existing data. It will *not* remove icons from the stale sprite if they aren't present in the fresh sprite (we aren't tracking the source of a sprite, and the user could have changed it as well). Similarly, it will not update icons that have changed in dimension. This is a rare edge case and probably not worth implementing.
* [test] ensure static rendering finishes when a tile can't be loadedKonstantin Käfer2016-01-152-0/+39
|
* [core] use stale and refreshing TileJSON/GeoJSON dataKonstantin Käfer2016-01-152-0/+25
| | | | We're now supporting using stale TileJSON and GeoJSON data. When we receive a new answer with an updated TileJSON file, we're replacing the Source's metadata with the new one and trigger updates to make sure we're loading the correct tiles. Similarly, GeoJSON data will be reparsed.
* [core] use stale stylesKonstantin Käfer2016-01-154-0/+39
| | | | This adds support for using cached styles that are stale. They're treated like changing styles; when the refreshed style changed compared to the one we've already had, we're swapping out the entire style, which might cause a slight flicker.
* [core] Eliminate platform::assetRoot()John Firebaugh2016-01-1310-2/+2
| | | | 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.