summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLucas Wojciechowski <lucas@mapbox.com>2015-08-12 16:57:50 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2015-08-20 11:59:07 -0700
commita85fd681fc574df553934b0f30682b1ed856c3c9 (patch)
tree7d1c46f1b7c6c80dfdf2a1438c44fb425bd70f86 /test
parent3598b166bd1c4523b486fa8ea3ddc31e5a1ced6a (diff)
downloadqtlocation-mapboxgl-a85fd681fc574df553934b0f30682b1ed856c3c9.tar.gz
Support new glyph URL syntax
Diffstat (limited to 'test')
-rw-r--r--test/miscellaneous/mapbox.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/miscellaneous/mapbox.cpp b/test/miscellaneous/mapbox.cpp
index f93749760b..1030dc6ebc 100644
--- a/test/miscellaneous/mapbox.cpp
+++ b/test/miscellaneous/mapbox.cpp
@@ -14,8 +14,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("mapbox://fonts/boxmap/{fontstack}/{range}.pbf", "key"), "https://api.tiles.mapbox.com/fonts/v1/boxmap/{fontstack}/{range}.pbf?access_token=key");
EXPECT_EQ(mbgl::util::mapbox::normalizeGlyphsURL("http://path", "key"), "http://path");
}