[render-test] Add test for file size tolerance
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 169 B |
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"file-size": [
|
||||
[
|
||||
"image",
|
||||
"expected.png",
|
||||
177
|
||||
],
|
||||
[
|
||||
"style",
|
||||
"style.json",
|
||||
548
|
||||
]
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"version": 8,
|
||||
"metadata": {
|
||||
"test": {
|
||||
"operations": [
|
||||
["probeFileSize", "style", "style.json", 0.05],
|
||||
["probeFileSize", "image", "expected.png", 0.05]
|
||||
],
|
||||
"width": 64,
|
||||
"height": 64
|
||||
}
|
||||
},
|
||||
"sources": {
|
||||
"geojson": {
|
||||
"type": "geojson",
|
||||
"data": {
|
||||
"type": "Point",
|
||||
"coordinates": [
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"layers": [
|
||||
{
|
||||
"id": "circle",
|
||||
"type": "circle",
|
||||
"source": "geojson"
|
||||
}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 169 B |
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"file-size": [
|
||||
[
|
||||
"image",
|
||||
"expected.png",
|
||||
161
|
||||
],
|
||||
[
|
||||
"style",
|
||||
"style.json",
|
||||
498
|
||||
]
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"version": 8,
|
||||
"metadata": {
|
||||
"test": {
|
||||
"operations": [
|
||||
["probeFileSize", "style", "style.json", 0.05],
|
||||
["probeFileSize", "image", "expected.png", 0.05]
|
||||
],
|
||||
"width": 64,
|
||||
"height": 64
|
||||
}
|
||||
},
|
||||
"sources": {
|
||||
"geojson": {
|
||||
"type": "geojson",
|
||||
"data": {
|
||||
"type": "Point",
|
||||
"coordinates": [
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"layers": [
|
||||
{
|
||||
"id": "circle",
|
||||
"type": "circle",
|
||||
"source": "geojson"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user