diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-10-11 14:06:02 +0300 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-10-21 16:10:45 +0300 |
commit | b0976feca26769261ee824688d6fae78298ae0da (patch) | |
tree | c949f823b3c03731b4ba6b8f3e55daf6aaec4bc2 /render-test/tests/memory/fail-memory-size-is-too-big/style.json | |
parent | 9adc78134c261d5e236faac3b537e1cfd937880a (diff) | |
download | qtlocation-mapboxgl-b0976feca26769261ee824688d6fae78298ae0da.tar.gz |
[test runner] Tests for memory size metrics
Diffstat (limited to 'render-test/tests/memory/fail-memory-size-is-too-big/style.json')
-rw-r--r-- | render-test/tests/memory/fail-memory-size-is-too-big/style.json | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/render-test/tests/memory/fail-memory-size-is-too-big/style.json b/render-test/tests/memory/fail-memory-size-is-too-big/style.json new file mode 100644 index 0000000000..b2805ef34f --- /dev/null +++ b/render-test/tests/memory/fail-memory-size-is-too-big/style.json @@ -0,0 +1,52 @@ +{ + "version": 8, + "metadata": { + "test": { + "width": 64, + "height": 64, + "operations": [ + [ "wait" ], + [ "probeMemoryStart" ], + [ "probeMemory", "start" ], + [ + "setZoom", + 0.9 + ], + [ + "wait" + ], + [ "probeMemory", "after setZoom 0.9", 0.005 ], + [ + "setLayerZoomRange", + "circle", + 1, + 2 + ], + [ + "wait" + ], + [ "probeMemory", "end", 0.005 ], + [ "probeMemoryEnd" ] + ] + } + }, + "sources": { + "geojson": { + "type": "geojson", + "data": { + "type": "Point", + "coordinates": [ + 0, + 0 + ] + } + } + }, + "layers": [ + { + "id": "circle", + "type": "circle", + "source": "geojson" + } + ] +} |