[test] Check all zoom levels in Annotations.SymbolAnnotation

This commit is contained in:
Bruno de Oliveira Abinader
2016-11-17 11:51:33 +01:00
parent e9f849e4d0
commit 97288cae96

View File

@@ -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) {