summaryrefslogtreecommitdiff
path: root/test/util
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2018-11-23 16:25:24 +0200
committerBruno de Oliveira Abinader <bruno@mapbox.com>2018-11-27 21:38:36 +0200
commit20ca1a041868955524b3f2475ebc83760398ca82 (patch)
tree2745a77cbd0483d739af0eb0c5654fadfabf20a5 /test/util
parente8f7866e9e3328bb4d40da172fb5a549315fd486 (diff)
downloadqtlocation-mapboxgl-20ca1a041868955524b3f2475ebc83760398ca82.tar.gz
[core] Cleanup Transform, use {jump,ease}To() instead
Diffstat (limited to 'test/util')
-rw-r--r--test/util/tile_cover.test.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/util/tile_cover.test.cpp b/test/util/tile_cover.test.cpp
index 72d77450a4..326e3da69a 100644
--- a/test/util/tile_cover.test.cpp
+++ b/test/util/tile_cover.test.cpp
@@ -34,13 +34,11 @@ TEST(TileCover, Pitch) {
Transform transform;
transform.resize({ 512, 512 });
// slightly offset center so that tile order is better defined
- transform.setLatLng({ 0.1, -0.1 });
- transform.setZoom(2);
- transform.setAngle(5.0);
- transform.setPitch(40.0 * M_PI / 180.0);
+
+ transform.jumpTo(CameraOptions().withCenter(LatLng { 0.1, -0.1, }).withZoom(2.0).withAngle(5.0).withPitch(40.0));
EXPECT_EQ((std::vector<UnwrappedTileID>{
- { 2, 1, 2 }, { 2, 1, 1 }, { 2, 2, 2 }, { 2, 2, 1 }, { 2, 3, 2 }
+ { 2, 1, 1 }, { 2, 2, 1 }, { 2, 1, 2 }, { 2, 2, 2 }
}),
util::tileCover(transform.getState(), 2));
}