Skip to content

Commit

Permalink
Render tests for #11041 (#11070)
Browse files Browse the repository at this point in the history
* Render tests for #11041

* Ignore #11041 render tests

Ignore in gl-js before the fix.
  • Loading branch information
astojilj authored Oct 4, 2021
1 parent f01ad55 commit d33f124
Show file tree
Hide file tree
Showing 10 changed files with 296 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/ignores.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,7 @@
"render-tests/within/paint-line": "https://github.com/mapbox/mapbox-gl-js/issues/7023",
"render-tests/distance/layout-text-size": "skip - distance expression is not implemented",
"render-tests/skybox/atmosphere-padding": "skip - https://github.com/mapbox/mapbox-gl-js/issues/10314",
"render-tests/terrain/symbol-draping/style.json": "skip - https://github.com/mapbox/mapbox-gl-js/issues/10365"
"render-tests/terrain/symbol-draping/style.json": "skip - https://github.com/mapbox/mapbox-gl-js/issues/10365",
"render-tests/fill-extrusion-terrain/flat-roof-over-border-of-different-zoom-zoomin": "skip - https://github.com/mapbox/mapbox-gl-js/issues/11041",
"render-tests/fill-extrusion-terrain/flat-roof-over-border-of-different-zoom": "skip - https://github.com/mapbox/mapbox-gl-js/issues/11041"
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
{
"version": 8,
"metadata": {
"description": "Tests various cases of flatRoofsUpdate().",
"test": {
"height": 512,
"width": 512,
"operations": [
["wait"],
[
"setZoom",
16
],
["wait"]
]
}
},
"sources": {
"rgbterrain": {
"type": "raster-dem",
"tiles": [
"local://tiles/const/0-0-0.terrain.512.png"
],
"maxzoom": 14,
"tileSize": 512
},
"mapbox": {
"type": "vector",
"maxzoom": 16,
"tiles": [
"local://tiles/{z}-{x}-{y}.mvt"
]
}
},
"terrain": {
"source": "rgbterrain"
},
"pitch": 50,
"bearing": 0,
"zoom": 15.5,
"center": [
-122.448383,
37.743011
],
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "blue"
}
},
{
"id": "road",
"type": "line",
"source": "mapbox",
"source-layer": "road",
"paint": {
"line-color": "lightgreen",
"line-width": 10
}
},
{
"id": "building",
"source": "mapbox",
"paint": {
"fill-opacity": [
"interpolate",
[
"linear"
],
[
"zoom"
],
15.0,
0.0,
16.0,
1.0
],
"fill-outline-color": [
"rgba",
205.00001525878907,
202.00001525878907,
198.00001525878907,
1.0
],
"fill-color": [
"interpolate",
[
"linear"
],
[
"zoom"
],
15.0,
[
"rgba",
223.00001525878907,
220.00001525878907,
215.00001525878907,
1.0
],
16.0,
[
"rgba",
220.00001525878907,
217.00001525878907,
214.00001525878907,
1.0
]
]
},
"filter": [
"all",
[
"!=",
[
"get",
"type"
],
"building:part"
],
[
"==",
[
"get",
"underground"
],
"false"
]
],
"source-layer": "building",
"type": "fill",
"minzoom": 15.0
},
{
"id": "extrusion",
"type": "fill-extrusion",
"source": "mapbox",
"source-layer": "building",
"filter": ["==", "extrude", "true"],
"paint": {
"fill-extrusion-color": "gray",
"fill-extrusion-opacity": 0.7,
"fill-extrusion-height": ["get", "height"]
}
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
{
"version": 8,
"metadata": {
"description": "Tests various cases of flatRoofsUpdate().",
"test": {
"height": 512,
"width": 512,
"operations": [
["wait"]
]
}
},
"sources": {
"rgbterrain": {
"type": "raster-dem",
"tiles": [
"local://tiles/const/0-0-0.terrain.512.png"
],
"maxzoom": 14,
"tileSize": 512
},
"mapbox": {
"type": "vector",
"maxzoom": 16,
"tiles": [
"local://tiles/{z}-{x}-{y}.mvt"
]
}
},
"terrain": {
"source": "rgbterrain"
},
"pitch": 50,
"bearing": 0,
"zoom": 16,
"center": [
-122.448383,
37.743011
],
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "blue"
}
},
{
"id": "road",
"type": "line",
"source": "mapbox",
"source-layer": "road",
"paint": {
"line-color": "lightgreen",
"line-width": 10
}
},
{
"id": "building",
"source": "mapbox",
"paint": {
"fill-opacity": [
"interpolate",
[
"linear"
],
[
"zoom"
],
15.0,
0.0,
16.0,
1.0
],
"fill-outline-color": [
"rgba",
205.00001525878907,
202.00001525878907,
198.00001525878907,
1.0
],
"fill-color": [
"interpolate",
[
"linear"
],
[
"zoom"
],
15.0,
[
"rgba",
223.00001525878907,
220.00001525878907,
215.00001525878907,
1.0
],
16.0,
[
"rgba",
220.00001525878907,
217.00001525878907,
214.00001525878907,
1.0
]
]
},
"filter": [
"all",
[
"!=",
[
"get",
"type"
],
"building:part"
],
[
"==",
[
"get",
"underground"
],
"false"
]
],
"source-layer": "building",
"type": "fill",
"minzoom": 15.0
},
{
"id": "extrusion",
"type": "fill-extrusion",
"source": "mapbox",
"source-layer": "building",
"filter": ["==", "extrude", "true"],
"paint": {
"fill-extrusion-color": "gray",
"fill-extrusion-opacity": 0.7,
"fill-extrusion-height": ["get", "height"]
}
}
]
}
Binary file added test/integration/tiles/15-5238-12668.mvt
Binary file not shown.
Binary file added test/integration/tiles/16-10476-25337mvt
Binary file not shown.
Binary file added test/integration/tiles/16-10476-25338.mvt
Binary file not shown.
Binary file added test/integration/tiles/16-10477-25337.mvt
Binary file not shown.
Binary file added test/integration/tiles/16-10477-25338.mvt
Binary file not shown.

0 comments on commit d33f124

Please sign in to comment.