add line-width and bad colors fixtures
This commit is contained in:
6
test/fixtures/style_parser/colors.info.json
vendored
Normal file
6
test/fixtures/style_parser/colors.info.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"default": {
|
||||
"log": [
|
||||
]
|
||||
}
|
||||
}
|
||||
40
test/fixtures/style_parser/colors.style.json
vendored
Normal file
40
test/fixtures/style_parser/colors.style.json
vendored
Normal file
@@ -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"
|
||||
}
|
||||
}]
|
||||
}
|
||||
7
test/fixtures/style_parser/line-width.info.json
vendored
Normal file
7
test/fixtures/style_parser/line-width.info.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"default": {
|
||||
"log": [
|
||||
[1, "WARNING", "ParseStyle", "value of 'line-width' must be a number, or a number function"]
|
||||
]
|
||||
}
|
||||
}
|
||||
20
test/fixtures/style_parser/line-width.style.json
vendored
Normal file
20
test/fixtures/style_parser/line-width.style.json
vendored
Normal file
@@ -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
|
||||
}
|
||||
}]
|
||||
}
|
||||
@@ -75,7 +75,7 @@ TEST_P(StyleParserTest, ParseStyle) {
|
||||
std::cerr << "Unchecked Log Messages (" << base << "/" << name << "): " << std::endl << unchecked;
|
||||
}
|
||||
|
||||
// ASSERT_EQ(0, unchecked.size());
|
||||
ASSERT_EQ(0, unchecked.size());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user