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-11 18:57:39 -0700 |
commit | ed54849e9909e7f7cd8724b39b2bc94f16cf9a11 (patch) | |
tree | 7fed575007c4d3f6b273679dfcc322a1611929f4 /test/util | |
parent | 78af1c6625fa5e45b268b3ff288d9886beedbc60 (diff) | |
download | qtlocation-mapboxgl-ed54849e9909e7f7cd8724b39b2bc94f16cf9a11.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.
Diffstat (limited to 'test/util')
-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")); } |