summaryrefslogtreecommitdiff
path: root/test/miscellaneous
diff options
context:
space:
mode:
authorjakepruitt <jake@mapbox.com>2015-07-23 18:29:12 -0400
committerjakepruitt <jake@mapbox.com>2015-07-27 10:16:14 -0400
commit14ba3cfd6aa0b50eb6b3884d3d7c1619f2582f2f (patch)
tree9f42acfc91c3c0e428d9dd1e92a2646609319dae /test/miscellaneous
parent32c7805740f3cff1d12fa95e1377cf4919ab9a73 (diff)
downloadqtlocation-mapboxgl-14ba3cfd6aa0b50eb6b3884d3d7c1619f2582f2f.tar.gz
Adding special case for non-fontstack "glyph" resource URLs
- does not prepend /v4/ to api endpoints like /fonts/v1/ - only prepends it to things starting with /fontstack - solves the problem in #1918 - refs mapbox/mapbox-gl-style-spec#309
Diffstat (limited to 'test/miscellaneous')
-rw-r--r--test/miscellaneous/mapbox.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/miscellaneous/mapbox.cpp b/test/miscellaneous/mapbox.cpp
index 1aff2494a4..f93749760b 100644
--- a/test/miscellaneous/mapbox.cpp
+++ b/test/miscellaneous/mapbox.cpp
@@ -15,6 +15,7 @@ TEST(Mapbox, SourceURL) {
TEST(Mapbox, GlyphsURL) {
EXPECT_EQ(mbgl::util::mapbox::normalizeGlyphsURL("mapbox://fontstack/{fontstack}/{range}.pbf", "key"), "https://api.tiles.mapbox.com/v4/fontstack/{fontstack}/{range}.pbf?access_token=key");
+ EXPECT_EQ(mbgl::util::mapbox::normalizeGlyphsURL("mapbox://fonts/v1/user/{fontstack}/{range}.pbf", "key"), "https://api.tiles.mapbox.com/fonts/v1/user/{fontstack}/{range}.pbf?access_token=key");
EXPECT_EQ(mbgl::util::mapbox::normalizeGlyphsURL("http://path", "key"), "http://path");
}