diff options
-rw-r--r-- | test/map/map.test.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/map/map.test.cpp b/test/map/map.test.cpp index fd831a05b7..8cb781c6df 100644 --- a/test/map/map.test.cpp +++ b/test/map/map.test.cpp @@ -20,8 +20,10 @@ #include <mbgl/style/style.hpp> #include <mbgl/style/image.hpp> #include <mbgl/style/layers/background_layer.hpp> +#include <mbgl/style/layers/raster_layer.hpp> #include <mbgl/style/layers/symbol_layer.hpp> #include <mbgl/style/sources/geojson_source.hpp> +#include <mbgl/style/sources/image_source.hpp> #include <mbgl/util/color.hpp> using namespace mbgl; @@ -867,3 +869,12 @@ TEST(Map, Issue12432) { test.runLoop.run(); } + +// https://github.com/mapbox/mapbox-gl-native/issues/15216 +TEST(Map, Issue15216) { + MapTest<> test { 1.0f, MapMode::Continuous }; + test.map.getStyle().addSource(std::make_unique<ImageSource>("ImageSource", std::array<LatLng, 4>())); + test.map.getStyle().addLayer(std::make_unique<RasterLayer>("RasterLayer", "ImageSource")); + // Passes, if there is no assertion hit. + test.runLoop.runOnce(); +}
\ No newline at end of file |