diff options
author | Mike Morris <michael.patrick.morris@gmail.com> | 2014-07-18 17:38:40 -0400 |
---|---|---|
committer | Mike Morris <michael.patrick.morris@gmail.com> | 2014-07-18 17:38:40 -0400 |
commit | 6d93d7286ce665df454e8f3bb048b7763672f77e (patch) | |
tree | 034defdd1be5c2c3930f53f17bc3e4f26c3c93f5 /test | |
parent | 30dc4055ca5ee8336bb98d60e4142b197bf0765c (diff) | |
download | qtlocation-mapboxgl-6d93d7286ce665df454e8f3bb048b7763672f77e.tar.gz |
add stops-array fixture
Diffstat (limited to 'test')
-rw-r--r-- | test/fixtures/style_parser/stops-array.info.json | 7 | ||||
-rw-r--r-- | test/fixtures/style_parser/stops-array.style.json | 22 |
2 files changed, 29 insertions, 0 deletions
diff --git a/test/fixtures/style_parser/stops-array.info.json b/test/fixtures/style_parser/stops-array.info.json new file mode 100644 index 0000000000..3324958c85 --- /dev/null +++ b/test/fixtures/style_parser/stops-array.info.json @@ -0,0 +1,7 @@ +{ + "default": { + "log": [ + [1, "WARNING", "ParseStyle", "stops function must specify a stops array"] + ] + } +} diff --git a/test/fixtures/style_parser/stops-array.style.json b/test/fixtures/style_parser/stops-array.style.json new file mode 100644 index 0000000000..67a2f83b07 --- /dev/null +++ b/test/fixtures/style_parser/stops-array.style.json @@ -0,0 +1,22 @@ +{ + "version": 3, + "sources": { + "mapbox": { + "type": "vector", + "url": "mapbox://mapbox.mapbox-terrain-v1,mapbox.mapbox-streets-v5", + "maxZoom": 14 + } + }, + "layers": [{ + "id": "waterway_river_canal", + "source": "mapbox", + "source-layer": "waterway", + "filter": { "type": ["river", "canal"] }, + "type": "line", + "style": { + "line-width": { + "stops": null + } + } + }] +} |