summaryrefslogtreecommitdiff
path: root/test/style
diff options
context:
space:
mode:
authorAsheem Mamoowala <Asheemm@gmail.com>2018-02-12 12:17:57 -0800
committerAsheem Mamoowala <asheem.mamoowala@mapbox.com>2018-02-12 16:56:20 -0800
commitaefc3daeeddaa597be3b10f5384cd3503099e2ee (patch)
tree48079657bd3b382b66d860fefc05b0609e90d127 /test/style
parent94734441ce34fa8cfaa2a5148ece676d75610e69 (diff)
downloadqtlocation-mapboxgl-aefc3daeeddaa597be3b10f5384cd3503099e2ee.tar.gz
TileJSON Bounds allows values inclusive of world extents
Diffstat (limited to 'test/style')
-rw-r--r--test/style/conversion/tileset.test.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/style/conversion/tileset.test.cpp b/test/style/conversion/tileset.test.cpp
index 8002cd038f..9487277cca 100644
--- a/test/style/conversion/tileset.test.cpp
+++ b/test/style/conversion/tileset.test.cpp
@@ -52,6 +52,16 @@ TEST(Tileset, InvalidBounds) {
}
}
+TEST(Tileset, ValidWorldBounds) {
+ Error error;
+ mbgl::optional<Tileset> converted = convertJSON<Tileset>(R"JSON({
+ "tiles": ["http://mytiles"],
+ "bounds": [-180, -90, 180, 90]
+ })JSON", error);
+ EXPECT_TRUE((bool) converted);
+ EXPECT_EQ(converted->bounds, LatLngBounds::hull({90, -180}, {-90, 180}));
+}
+
TEST(Tileset, FullConversion) {
Error error;
Tileset converted = *convertJSON<Tileset>(R"JSON({