summaryrefslogtreecommitdiff
path: root/test/fixtures/style_parser
diff options
context:
space:
mode:
authorMike Morris <michael.patrick.morris@gmail.com>2014-07-18 17:35:30 -0400
committerMike Morris <michael.patrick.morris@gmail.com>2014-07-18 17:35:30 -0400
commit30dc4055ca5ee8336bb98d60e4142b197bf0765c (patch)
tree266c99ad90f3adef0c1236f414137304e2b62a5a /test/fixtures/style_parser
parentd59e66f9aad121b5f54fd8ad0cbfad6e2f2f8e04 (diff)
downloadqtlocation-mapboxgl-30dc4055ca5ee8336bb98d60e4142b197bf0765c.tar.gz
add line-width and bad colors fixtures
Diffstat (limited to 'test/fixtures/style_parser')
-rw-r--r--test/fixtures/style_parser/colors.info.json6
-rw-r--r--test/fixtures/style_parser/colors.style.json40
-rw-r--r--test/fixtures/style_parser/line-width.info.json7
-rw-r--r--test/fixtures/style_parser/line-width.style.json20
4 files changed, 73 insertions, 0 deletions
diff --git a/test/fixtures/style_parser/colors.info.json b/test/fixtures/style_parser/colors.info.json
new file mode 100644
index 0000000000..9c25a2f488
--- /dev/null
+++ b/test/fixtures/style_parser/colors.info.json
@@ -0,0 +1,6 @@
+{
+ "default": {
+ "log": [
+ ]
+ }
+}
diff --git a/test/fixtures/style_parser/colors.style.json b/test/fixtures/style_parser/colors.style.json
new file mode 100644
index 0000000000..c3e94d6370
--- /dev/null
+++ b/test/fixtures/style_parser/colors.style.json
@@ -0,0 +1,40 @@
+{
+ "version": 3,
+ "sources": {
+ "mapbox": {
+ "type": "vector",
+ "url": "mapbox://mapbox.mapbox-terrain-v1,mapbox.mapbox-streets-v5",
+ "maxZoom": 14
+ }
+ },
+ "constants": {
+ "@land":"r44,239,225)",
+ "@snow":"f4f8foNGbjf#",
+ "@crop":"#eerLznieed4"
+ },
+ "layers": [{
+ "id": "background",
+ "type": "background",
+ "style": {
+ "background-color": "@land"
+ }
+ }, {
+ "id": "landcover_snow",
+ "source": "mapbox",
+ "source-layer": "landcover",
+ "filter": { "class": "snow" },
+ "type": "fill",
+ "style": {
+ "fill-color": "@snow"
+ }
+ }, {
+ "id": "landcover_crop",
+ "source": "mapbox",
+ "source-layer": "landcover",
+ "filter": { "class": "crop" },
+ "type": "fill",
+ "style": {
+ "fill-color": "@crop"
+ }
+ }]
+}
diff --git a/test/fixtures/style_parser/line-width.info.json b/test/fixtures/style_parser/line-width.info.json
new file mode 100644
index 0000000000..af2f9b284a
--- /dev/null
+++ b/test/fixtures/style_parser/line-width.info.json
@@ -0,0 +1,7 @@
+{
+ "default": {
+ "log": [
+ [1, "WARNING", "ParseStyle", "value of 'line-width' must be a number, or a number function"]
+ ]
+ }
+}
diff --git a/test/fixtures/style_parser/line-width.style.json b/test/fixtures/style_parser/line-width.style.json
new file mode 100644
index 0000000000..83c66065db
--- /dev/null
+++ b/test/fixtures/style_parser/line-width.style.json
@@ -0,0 +1,20 @@
+{
+ "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": null
+ }
+ }]
+}