Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Commit 33a8856

Browse files
committed
[test] Added max zoom annotation tests
1 parent 1d46e83 commit 33a8856

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

test/api/annotations.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ TEST(Annotations, SymbolAnnotation) {
4242
test.map.addAnnotationIcon("default_marker", namedMarker("default_marker.png"));
4343
test.map.addAnnotation(SymbolAnnotation { Point<double>(0, 0), "default_marker" });
4444
test.checkRendering("point_annotation");
45+
46+
// FIXME: https://github.com/mapbox/mapbox-gl-native/issues/5419
47+
//test.map.setZoom(test.map.getMaxZoom());
48+
//test.checkRendering("point_annotation");
4549
}
4650

4751
TEST(Annotations, LineAnnotation) {
@@ -55,6 +59,9 @@ TEST(Annotations, LineAnnotation) {
5559
test.map.setStyleJSON(util::read_file("test/fixtures/api/empty.json"));
5660
test.map.addAnnotation(annotation);
5761
test.checkRendering("line_annotation");
62+
63+
test.map.setZoom(test.map.getMaxZoom());
64+
test.checkRendering("line_annotation_max_zoom");
5865
}
5966

6067
TEST(Annotations, FillAnnotation) {
@@ -67,6 +74,9 @@ TEST(Annotations, FillAnnotation) {
6774
test.map.setStyleJSON(util::read_file("test/fixtures/api/empty.json"));
6875
test.map.addAnnotation(annotation);
6976
test.checkRendering("fill_annotation");
77+
78+
test.map.setZoom(test.map.getMaxZoom());
79+
test.checkRendering("fill_annotation_max_zoom");
7080
}
7181

7282
TEST(Annotations, StyleSourcedShapeAnnotation) {
Loading
Loading

0 commit comments

Comments
 (0)