diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-09-09 10:17:42 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2017-05-12 10:02:27 -0700 |
commit | 0ef1293dada1490c808ae821228d5a2f3324afdb (patch) | |
tree | 8e29572e8f2bf131da3284e94c0d67bbce8e4e7e /test | |
parent | cb737362b631284e1516561caf30c2027f9bdc03 (diff) | |
download | qtlocation-mapboxgl-0ef1293dada1490c808ae821228d5a2f3324afdb.tar.gz |
[core, android, ios, macos, qt] v10 default styles
Upgraded from v9 default styles to v10 wherever the developer expects to get the latest and greatest, as well as in a couple tests where it may be beneficial to ensure that we can handle a two-digit version number in the style URL.
Cherry-picked from ed54849e9909e7f7cd8724b39b2bc94f16cf9a11.
Diffstat (limited to 'test')
-rw-r--r-- | test/util/mapbox.test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/util/mapbox.test.cpp b/test/util/mapbox.test.cpp index ba867ccb5c..cdbd85118f 100644 --- a/test/util/mapbox.test.cpp +++ b/test/util/mapbox.test.cpp @@ -91,9 +91,9 @@ TEST(Mapbox, SpriteURL) { "https://api.mapbox.com/styles/v1/mapbox/streets-v8/draft/sprite@2x.png?access_token=key", mbgl::util::mapbox::normalizeSpriteURL(util::API_BASE_URL, "mapbox://sprites/mapbox/streets-v8/draft@2x.png", "key")); EXPECT_EQ( - "https://api.mapbox.com/styles/v1/mapbox/streets-v9/sprite?access_token=key&fresh=true.png", + "https://api.mapbox.com/styles/v1/mapbox/streets-v10/sprite?access_token=key&fresh=true.png", mbgl::util::mapbox::normalizeSpriteURL(util::API_BASE_URL, - "mapbox://sprites/mapbox/streets-v9?fresh=true.png", + "mapbox://sprites/mapbox/streets-v10?fresh=true.png", "key")); EXPECT_EQ("mapbox://////", mbgl::util::mapbox::normalizeSpriteURL(util::API_BASE_URL, "mapbox://////", "key")); } |