diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2016-01-15 12:33:40 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2016-01-15 12:48:23 +0100 |
commit | 5fe586633cb15c99f77ca478446679acf42fddd1 (patch) | |
tree | 575b299b0d9a9c500b143be54a6f268ff2cad18c /test/fixtures | |
parent | 8a964fb9313e57b71c64b8c0739ec84f163dc537 (diff) | |
download | qtlocation-mapboxgl-5fe586633cb15c99f77ca478446679acf42fddd1.tar.gz |
[test] ensure static rendering finishes when a tile can't be loaded
Diffstat (limited to 'test/fixtures')
-rw-r--r-- | test/fixtures/api/assets/streets_missing_tiles.json | 14 | ||||
-rw-r--r-- | test/fixtures/api/water_missing_tiles.json | 25 |
2 files changed, 39 insertions, 0 deletions
diff --git a/test/fixtures/api/assets/streets_missing_tiles.json b/test/fixtures/api/assets/streets_missing_tiles.json new file mode 100644 index 0000000000..671665caeb --- /dev/null +++ b/test/fixtures/api/assets/streets_missing_tiles.json @@ -0,0 +1,14 @@ +{ + "bounds": [ -180, -85.0511, 180, 85.0511 ], + "center": [ 0, 0, 0 ], + "description": "", + "format": "pbf", + "id": "streets", + "maskLevel": 8, + "maxzoom": 15, + "minzoom": 0, + "name": "Streets", + "scheme": "xyz", + "tilejson": "2.0.0", + "tiles": [ "http://127.0.0.1:3001/{z}-{x}-{y}.vector.pbf" ] +} diff --git a/test/fixtures/api/water_missing_tiles.json b/test/fixtures/api/water_missing_tiles.json new file mode 100644 index 0000000000..c9ed77318d --- /dev/null +++ b/test/fixtures/api/water_missing_tiles.json @@ -0,0 +1,25 @@ +{ + "version": 8, + "name": "Water", + "sources": { + "mapbox": { + "type": "vector", + "url": "asset://streets_missing_tiles.json" + } + }, + "layers": [{ + "id": "background", + "type": "background", + "paint": { + "background-color": "red" + } + }, { + "id": "water", + "type": "fill", + "source": "mapbox", + "source-layer": "water", + "paint": { + "fill-color": "blue" + } + }] +} |