Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
Added style parser tests for circle-{blur,color,radius}
Browse files Browse the repository at this point in the history
Part of #1740.
  • Loading branch information
brunoabinader committed Jun 18, 2015
1 parent 49c605a commit c3d510f
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/fixtures/style_parser/circle-blur.info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"default": {
"log": [
[1, "WARNING", "ParseStyle", "value of 'circle-blur' must be a number, or a number function"]
]
}
}
18 changes: 18 additions & 0 deletions test/fixtures/style_parser/circle-blur.style.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"version": 6,
"sources": {
"mapbox": {
"type": "vector",
"url": "mapbox://mapbox.mapbox-terrain-v1,mapbox.mapbox-streets-v5",
"maxzoom": 14
}
},
"layers": [{
"id": "circle_blur_example",
"type": "circle",
"source": "mapbox",
"paint": {
"circle-blur": null
}
}]
}
7 changes: 7 additions & 0 deletions test/fixtures/style_parser/circle-color.info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"default": {
"log": [
[1, "WARNING", "ParseStyle", "color value must be a string"]
]
}
}
18 changes: 18 additions & 0 deletions test/fixtures/style_parser/circle-color.style.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"version": 6,
"sources": {
"mapbox": {
"type": "vector",
"url": "mapbox://mapbox.mapbox-terrain-v1,mapbox.mapbox-streets-v5",
"maxzoom": 14
}
},
"layers": [{
"id": "circle_color_example",
"type": "circle",
"source": "mapbox",
"paint": {
"circle-color": null
}
}]
}
7 changes: 7 additions & 0 deletions test/fixtures/style_parser/circle-radius.info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"default": {
"log": [
[1, "WARNING", "ParseStyle", "value of 'circle-radius' must be a number, or a number function"]
]
}
}
18 changes: 18 additions & 0 deletions test/fixtures/style_parser/circle-radius.style.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"version": 6,
"sources": {
"mapbox": {
"type": "vector",
"url": "mapbox://mapbox.mapbox-terrain-v1,mapbox.mapbox-streets-v5",
"maxzoom": 14
}
},
"layers": [{
"id": "circle_radius_example",
"type": "circle",
"source": "mapbox",
"paint": {
"circle-radius": null
}
}]
}

0 comments on commit c3d510f

Please sign in to comment.