summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Rex <julian.rex@mapbox.com>2018-12-17 11:49:17 -0500
committerJulian Rex <julian.rex@mapbox.com>2018-12-17 11:49:17 -0500
commit069af6daab11f18af723fe3eac7ae5ea6e216dc5 (patch)
tree94ba9a1ea241cbb07882bfc1dfcc42cd15b71c31
parentf5337a751ea5773015e5fa4ad3872ab97fb4f3ea (diff)
downloadqtlocation-mapboxgl-069af6daab11f18af723fe3eac7ae5ea6e216dc5.tar.gz
Added entry for streets-v11
-rw-r--r--test/util/mapbox.test.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/util/mapbox.test.cpp b/test/util/mapbox.test.cpp
index 33bd6e72ee..c29be37a38 100644
--- a/test/util/mapbox.test.cpp
+++ b/test/util/mapbox.test.cpp
@@ -96,6 +96,11 @@ TEST(Mapbox, SpriteURL) {
mbgl::util::mapbox::normalizeSpriteURL(util::API_BASE_URL,
"mapbox://sprites/mapbox/streets-v10?fresh=true.png",
"key"));
+ EXPECT_EQ(
+ "https://api.mapbox.com/styles/v1/mapbox/streets-v11/sprite?access_token=key&fresh=true.png",
+ mbgl::util::mapbox::normalizeSpriteURL(util::API_BASE_URL,
+ "mapbox://sprites/mapbox/streets-v11?fresh=true.png",
+ "key"));
EXPECT_EQ("mapbox://////", mbgl::util::mapbox::normalizeSpriteURL(util::API_BASE_URL, "mapbox://////", "key"));
}