[test] Added max zoom annotation tests

This commit is contained in:
Bruno de Oliveira Abinader
2016-06-27 18:37:16 +03:00
parent 1d46e83e30
commit 33a8856c2a
3 changed files with 10 additions and 0 deletions

View File

@@ -42,6 +42,10 @@ TEST(Annotations, SymbolAnnotation) {
test.map.addAnnotationIcon("default_marker", namedMarker("default_marker.png"));
test.map.addAnnotation(SymbolAnnotation { Point<double>(0, 0), "default_marker" });
test.checkRendering("point_annotation");
// FIXME: https://github.com/mapbox/mapbox-gl-native/issues/5419
//test.map.setZoom(test.map.getMaxZoom());
//test.checkRendering("point_annotation");
}
TEST(Annotations, LineAnnotation) {
@@ -55,6 +59,9 @@ TEST(Annotations, LineAnnotation) {
test.map.setStyleJSON(util::read_file("test/fixtures/api/empty.json"));
test.map.addAnnotation(annotation);
test.checkRendering("line_annotation");
test.map.setZoom(test.map.getMaxZoom());
test.checkRendering("line_annotation_max_zoom");
}
TEST(Annotations, FillAnnotation) {
@@ -67,6 +74,9 @@ TEST(Annotations, FillAnnotation) {
test.map.setStyleJSON(util::read_file("test/fixtures/api/empty.json"));
test.map.addAnnotation(annotation);
test.checkRendering("fill_annotation");
test.map.setZoom(test.map.getMaxZoom());
test.checkRendering("fill_annotation_max_zoom");
}
TEST(Annotations, StyleSourcedShapeAnnotation) {