From 6d93d7286ce665df454e8f3bb048b7763672f77e Mon Sep 17 00:00:00 2001 From: Mike Morris Date: Fri, 18 Jul 2014 17:38:40 -0400 Subject: [PATCH] add stops-array fixture --- .../style_parser/stops-array.info.json | 7 ++++++ .../style_parser/stops-array.style.json | 22 +++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 test/fixtures/style_parser/stops-array.info.json create mode 100644 test/fixtures/style_parser/stops-array.style.json 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 000000000..3324958c8 --- /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 000000000..67a2f83b0 --- /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 + } + } + }] +}