-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add regression test for circle stroke (#4291)
This adds a test that checks that if a circle has a visible stroke, the representation of the stroke is still visible even if: * The circle itself has a clear color * The circle itself has a circle-opacity of 0 * The circle itself has a radius of 0
- Loading branch information
1 parent
3395b10
commit fd73395
Showing
2 changed files
with
105 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+1.31 KB
test/integration/render-tests/regressions/mapbox-gl-native#8078/expected.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
105 changes: 105 additions & 0 deletions
105
test/integration/render-tests/regressions/mapbox-gl-native#8078/style.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"width": 64, | ||
"height": 64 | ||
} | ||
}, | ||
"sources": { | ||
"sourceOne": { | ||
"type": "geojson", | ||
"data": { | ||
"type": "FeatureCollection", | ||
"features": [ | ||
{ | ||
"type": "Feature", | ||
"properties": {}, | ||
"id": "a", | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
-10, | ||
0 | ||
] | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"sourceTwo": { | ||
"type": "geojson", | ||
"data": { | ||
"type": "FeatureCollection", | ||
"features": [ | ||
{ | ||
"type": "Feature", | ||
"properties": {}, | ||
"id": "a", | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
10, | ||
0 | ||
] | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"sourceThree": { | ||
"type": "geojson", | ||
"data": { | ||
"type": "FeatureCollection", | ||
"features": [ | ||
{ | ||
"type": "Feature", | ||
"properties": {}, | ||
"id": "a", | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
0, | ||
-10 | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"layers": [ | ||
{ | ||
"id": "circleOne", | ||
"type": "circle", | ||
"source": "sourceOne", | ||
"paint": { | ||
"circle-color": "rgba(0,0,0,0)", | ||
"circle-radius": 10, | ||
"circle-stroke-color": "blue", | ||
"circle-stroke-width": 2 | ||
} | ||
}, | ||
{ | ||
"id": "circleTwo", | ||
"type": "circle", | ||
"source": "sourceTwo", | ||
"paint": { | ||
"circle-opacity": 0, | ||
"circle-radius": 10, | ||
"circle-stroke-color": "red", | ||
"circle-stroke-width": 2 | ||
} | ||
}, | ||
{ | ||
"id": "circleThree", | ||
"type": "circle", | ||
"source": "sourceThree", | ||
"paint": { | ||
"circle-radius": 0, | ||
"circle-stroke-color": "green", | ||
"circle-stroke-width": 2 | ||
} | ||
} | ||
] | ||
} |