summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-07-25 23:43:41 +0300
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-07-26 11:23:13 +0300
commitbe5aa1806bd1ca17a75c5c9b1646179125e602a5 (patch)
tree661f86854f79f10face6a839ac9ba336b70a336f
parent8a6a332264c86f163afef4784012ab8b67e70e55 (diff)
downloadqtlocation-mapboxgl-be5aa1806bd1ca17a75c5c9b1646179125e602a5.tar.gz
[core] Added unit test for issue 15216
-rw-r--r--test/map/map.test.cpp11
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