diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-09-16 17:02:43 -0700 |
---|---|---|
committer | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-09-22 17:43:28 +0300 |
commit | 4d3356dc1e1239d8f4fb985d2f584a403aea8521 (patch) | |
tree | 60d03809da1b5d6e6856db7fb3957cc63b63bd27 /test/fixtures | |
parent | 486bdddb23c93572c29068a229041b2575f383e8 (diff) | |
download | qtlocation-mapboxgl-4d3356dc1e1239d8f4fb985d2f584a403aea8521.tar.gz |
[tests] Add tests for Map::[add|remove]Image
Diffstat (limited to 'test/fixtures')
-rw-r--r-- | test/fixtures/api/icon_style.json | 25 | ||||
-rw-r--r-- | test/fixtures/map/add_icon/expected.png | bin | 0 -> 1741 bytes | |||
-rw-r--r-- | test/fixtures/map/remove_icon/expected.png | bin | 0 -> 355 bytes |
3 files changed, 25 insertions, 0 deletions
diff --git a/test/fixtures/api/icon_style.json b/test/fixtures/api/icon_style.json new file mode 100644 index 0000000000..17d41c6b68 --- /dev/null +++ b/test/fixtures/api/icon_style.json @@ -0,0 +1,25 @@ +{ + "version": 8, + "sources": { + "geojson": { + "type": "geojson", + "data": { + "type": "Point", + "coordinates": [ + 0, + 0 + ] + } + } + }, + "layers": [ + { + "id": "symbol", + "type": "symbol", + "source": "geojson", + "layout": { + "icon-image": "test-icon" + } + } + ] +} diff --git a/test/fixtures/map/add_icon/expected.png b/test/fixtures/map/add_icon/expected.png Binary files differnew file mode 100644 index 0000000000..0297f7c0ce --- /dev/null +++ b/test/fixtures/map/add_icon/expected.png diff --git a/test/fixtures/map/remove_icon/expected.png b/test/fixtures/map/remove_icon/expected.png Binary files differnew file mode 100644 index 0000000000..b97b635a21 --- /dev/null +++ b/test/fixtures/map/remove_icon/expected.png |