From c36e23130c3f691516b6021fdeef29d80e977cd9 Mon Sep 17 00:00:00 2001 From: Mikhail Pozdnyakov Date: Thu, 25 Jul 2019 23:43:41 +0300 Subject: [core] Added unit test for issue 15216 --- test/map/map.test.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 #include #include +#include #include #include +#include #include 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", std::array())); + test.map.getStyle().addLayer(std::make_unique("RasterLayer", "ImageSource")); + // Passes, if there is no assertion hit. + test.runLoop.runOnce(); +} \ No newline at end of file -- cgit v1.2.1