bad stops array fixture, weird error
This commit is contained in:
7
test/fixtures/style_parser/function-numeric.info.json
vendored
Normal file
7
test/fixtures/style_parser/function-numeric.info.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"default": {
|
||||
"log": [
|
||||
[1, "WARNING", "ParseStyle", "function argument must be a numeric value"]
|
||||
]
|
||||
}
|
||||
}
|
||||
22
test/fixtures/style_parser/function-numeric.style.json
vendored
Normal file
22
test/fixtures/style_parser/function-numeric.style.json
vendored
Normal file
@@ -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": [0]
|
||||
}
|
||||
}
|
||||
}]
|
||||
}
|
||||
11
test/fixtures/style_parser/fuzz-layers.info.json
vendored
11
test/fixtures/style_parser/fuzz-layers.info.json
vendored
@@ -1,11 +0,0 @@
|
||||
{
|
||||
"default": {
|
||||
"log": [
|
||||
[20, "WARNING", "ParseStyle", "stop must have zoom level and value specification"],
|
||||
[6, "WARNING", "ParseStyle", "function must specify a function type"],
|
||||
[1, "WARNING", "ParseStyle", "value of 'line-width' must be a number, or a number function"],
|
||||
[1, "WARNING", "ParseStyle", "array value has unexpected number of elements"],
|
||||
[1, "WARNING", "ParseStyle", "value of 'line-opacity' must be a number, or a number function"]
|
||||
]
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user