summaryrefslogtreecommitdiff
path: root/test/fixtures/style_parser
diff options
context:
space:
mode:
authorMike Morris <michael.patrick.morris@gmail.com>2014-07-18 17:38:40 -0400
committerMike Morris <michael.patrick.morris@gmail.com>2014-07-18 17:38:40 -0400
commit6d93d7286ce665df454e8f3bb048b7763672f77e (patch)
tree034defdd1be5c2c3930f53f17bc3e4f26c3c93f5 /test/fixtures/style_parser
parent30dc4055ca5ee8336bb98d60e4142b197bf0765c (diff)
downloadqtlocation-mapboxgl-6d93d7286ce665df454e8f3bb048b7763672f77e.tar.gz
add stops-array fixture
Diffstat (limited to 'test/fixtures/style_parser')
-rw-r--r--test/fixtures/style_parser/stops-array.info.json7
-rw-r--r--test/fixtures/style_parser/stops-array.style.json22
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
+ }
+ }
+ }]
+}