From 5fe586633cb15c99f77ca478446679acf42fddd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Fri, 15 Jan 2016 12:33:40 +0100 Subject: [test] ensure static rendering finishes when a tile can't be loaded --- .../fixtures/api/assets/streets_missing_tiles.json | 14 ++++++++++++ test/fixtures/api/water_missing_tiles.json | 25 ++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 test/fixtures/api/assets/streets_missing_tiles.json create mode 100644 test/fixtures/api/water_missing_tiles.json (limited to 'test/fixtures/api') 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" + } + }] +} -- cgit v1.2.1