summaryrefslogtreecommitdiff
path: root/test/api
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2017-09-12 07:20:59 -0400
committerBruno de Oliveira Abinader <bruno@mapbox.com>2017-09-15 16:41:29 -0300
commit45d07163eb3a52de3b959e4b5cd624e346d72ddb (patch)
treee9fac2e201ba310f611dc6f0b2426fab6f21482b /test/api
parent0f9773e615e0790e7559d5ec4a9cb331edc13a93 (diff)
downloadqtlocation-mapboxgl-45d07163eb3a52de3b959e4b5cd624e346d72ddb.tar.gz
[core] Reset zoom history state in still mode
Diffstat (limited to 'test/api')
-rw-r--r--test/api/zoom_history.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/api/zoom_history.cpp b/test/api/zoom_history.cpp
index 3c60a5e2f2..1b1159bf52 100644
--- a/test/api/zoom_history.cpp
+++ b/test/api/zoom_history.cpp
@@ -62,4 +62,10 @@ TEST(API, ZoomHistory) {
// ZoomHistory.lastIntegerZoom should be 0.
map->setZoom(0.5);
test::checkImage("test/fixtures/zoom_history", frontend.render(*map), 0.0002);
+
+ map->setZoom(1.0);
+ frontend.render(*map);
+
+ map->setZoom(0.5);
+ test::checkImage("test/fixtures/zoom_history", frontend.render(*map), 0.0002);
}