summaryrefslogtreecommitdiff
path: root/metrics/tests/probes/file-size/pass-size-is-same
diff options
context:
space:
mode:
Diffstat (limited to 'metrics/tests/probes/file-size/pass-size-is-same')
-rw-r--r--metrics/tests/probes/file-size/pass-size-is-same/expected.pngbin0 -> 169 bytes
-rw-r--r--metrics/tests/probes/file-size/pass-size-is-same/metrics.json24
-rw-r--r--metrics/tests/probes/file-size/pass-size-is-same/style.json34
3 files changed, 58 insertions, 0 deletions
diff --git a/metrics/tests/probes/file-size/pass-size-is-same/expected.png b/metrics/tests/probes/file-size/pass-size-is-same/expected.png
new file mode 100644
index 0000000000..83d01c4e5d
--- /dev/null
+++ b/metrics/tests/probes/file-size/pass-size-is-same/expected.png
Binary files differ
diff --git a/metrics/tests/probes/file-size/pass-size-is-same/metrics.json b/metrics/tests/probes/file-size/pass-size-is-same/metrics.json
new file mode 100644
index 0000000000..15f8c35617
--- /dev/null
+++ b/metrics/tests/probes/file-size/pass-size-is-same/metrics.json
@@ -0,0 +1,24 @@
+{
+ "file-size": [
+ [
+ "image",
+ "expected.png",
+ 169
+ ],
+ [
+ "image-compressed",
+ "expected.png",
+ 167
+ ],
+ [
+ "style",
+ "style.json",
+ 674
+ ],
+ [
+ "style-compressed",
+ "style.json",
+ 256
+ ]
+ ]
+}
diff --git a/metrics/tests/probes/file-size/pass-size-is-same/style.json b/metrics/tests/probes/file-size/pass-size-is-same/style.json
new file mode 100644
index 0000000000..b13f37500a
--- /dev/null
+++ b/metrics/tests/probes/file-size/pass-size-is-same/style.json
@@ -0,0 +1,34 @@
+{
+ "version": 8,
+ "metadata": {
+ "test": {
+ "operations": [
+ ["probeFileSize", "image", "expected.png", 0],
+ ["probeFileSize", "image-compressed", "expected.png", 0, "compressed"],
+ ["probeFileSize", "style", "style.json", 0],
+ ["probeFileSize", "style-compressed", "style.json", 0, "compressed"]
+ ],
+ "width": 64,
+ "height": 64
+ }
+ },
+ "sources": {
+ "geojson": {
+ "type": "geojson",
+ "data": {
+ "type": "Point",
+ "coordinates": [
+ 0,
+ 0
+ ]
+ }
+ }
+ },
+ "layers": [
+ {
+ "id": "circle",
+ "type": "circle",
+ "source": "geojson"
+ }
+ ]
+}