diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2017-05-31 08:45:33 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2017-06-05 19:38:08 -0700 |
commit | f983c2716b807669561e09fc86b765d79938be30 (patch) | |
tree | c5f6ef1d5509840e569d0ac050ca79b16b3748b4 /test | |
parent | 74af076d405a089fac70a47e41fe92d04d97fc50 (diff) | |
download | qtlocation-mapboxgl-f983c2716b807669561e09fc86b765d79938be30.tar.gz |
[core] Fix several bugs in AnnotationManager
Diffstat (limited to 'test')
-rw-r--r-- | test/api/annotations.test.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/api/annotations.test.cpp b/test/api/annotations.test.cpp index 4c27c871ae..12acdbca2f 100644 --- a/test/api/annotations.test.cpp +++ b/test/api/annotations.test.cpp @@ -425,6 +425,12 @@ TEST(Annotations, VisibleFeatures) { EXPECT_EQ(features.size(), ids.size()); } +TEST(Annotations, TopOffsetPixels) { + AnnotationTest test; + + test.map.addAnnotationImage(namedMarker("default_marker")); + EXPECT_EQ(test.map.getTopOffsetPixelsForAnnotationImage("default_marker"), -28); +} TEST(Annotations, DebugEmpty) { // This test should render nothing, not even the tile borders. Tile borders are only rendered |