add antialiasing test

This commit is contained in:
Konstantin Käfer
2014-07-08 15:05:10 -07:00
parent df65ecaa34
commit e1bd68f618
5 changed files with 42 additions and 1 deletions

BIN
test/fixtures/styles/1.actual.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

BIN
test/fixtures/styles/1.expected.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

8
test/fixtures/styles/1.info.json vendored Normal file
View File

@@ -0,0 +1,8 @@
{
"zoom": 0,
"latitude": 0,
"longitude": 0,
"angle": 0,
"width": 512,
"height": 512
}

33
test/fixtures/styles/1.style.json vendored Normal file
View File

@@ -0,0 +1,33 @@
{
"version": 3,
"sources": {
"mapbox": {
"type": "vector",
"url": "tiles/%d-%d-%d.vector.pbf",
"tileSize": 512,
"maxZoom": 14
}
},
"layers": [
{
"id": "background",
"render": {
"type": "background"
},
"style": {
"background-color": "red"
}
},
{
"id": "water",
"source": "mapbox",
"source-layer": "water",
"render": {
"type": "fill"
},
"style": {
"fill-color": "blue"
}
}
]
}

View File

@@ -67,4 +67,4 @@ TEST_P(HeadlessTest, render) {
}
INSTANTIATE_TEST_CASE_P(Headless, HeadlessTest,
::testing::Values("0"));
::testing::Values("0", "1"));