diff options
author | Asheem Mamoowala <Asheemm@gmail.com> | 2018-02-12 12:17:57 -0800 |
---|---|---|
committer | Asheem Mamoowala <Asheemm@gmail.com> | 2018-02-12 12:27:30 -0800 |
commit | f4f3bfd68304f82904d2acaf471810fe2cb6b508 (patch) | |
tree | 1f15f17b42e6d13ff3d4dd123d9a484b1162a63b /test/style/conversion/tileset.test.cpp | |
parent | f0b12d581a266f8877fba32be97fe82561bb2392 (diff) | |
download | qtlocation-mapboxgl-f4f3bfd68304f82904d2acaf471810fe2cb6b508.tar.gz |
TileJSON Bounds allows values inclusive of world extentsupstream/fix-tilejson-bounds
Diffstat (limited to 'test/style/conversion/tileset.test.cpp')
-rw-r--r-- | test/style/conversion/tileset.test.cpp | 10 |
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({ |