summaryrefslogtreecommitdiff
path: root/test/api/annotations.test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/api/annotations.test.cpp')
-rw-r--r--test/api/annotations.test.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/test/api/annotations.test.cpp b/test/api/annotations.test.cpp
index ef70ee188c..458ac3f13e 100644
--- a/test/api/annotations.test.cpp
+++ b/test/api/annotations.test.cpp
@@ -47,14 +47,11 @@ TEST(Annotations, SymbolAnnotation) {
auto size = test.view.size;
auto screenBox = ScreenBox { {}, { double(size.width), double(size.height) } };
- auto features = test.map.queryPointAnnotations(screenBox);
- EXPECT_EQ(features.size(), 1u);
-
- test.map.setZoom(test.map.getMaxZoom());
- test.checkRendering("point_annotation");
-
- features = test.map.queryPointAnnotations(screenBox);
- EXPECT_EQ(features.size(), 1u);
+ for (uint8_t zoom = test.map.getMinZoom(); zoom <= test.map.getMaxZoom(); ++zoom) {
+ test.map.setZoom(zoom);
+ test.checkRendering("point_annotation");
+ EXPECT_EQ(test.map.queryPointAnnotations(screenBox).size(), 1u);
+ }
}
TEST(Annotations, LineAnnotation) {