add line-width and bad colors fixtures

This commit is contained in:
Mike Morris
2014-07-18 17:35:30 -04:00
parent d59e66f9aa
commit 30dc4055ca
5 changed files with 74 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
{
"default": {
"log": [
]
}
}

View 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"
}
}]
}

View File

@@ -0,0 +1,7 @@
{
"default": {
"log": [
[1, "WARNING", "ParseStyle", "value of 'line-width' must be a number, or a number function"]
]
}
}

View 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
}
}]
}

View File

@@ -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());
}
}