summaryrefslogtreecommitdiff
path: root/test/style
diff options
context:
space:
mode:
authorYoung Hahn <young@mapbox.com>2016-02-02 04:29:27 -0500
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-02-11 11:28:35 -0800
commit43c44eccdc56c50e41e8efbe5f7a34b57eed756f (patch)
tree65d39c01c1e3281a8d292049029fffa75e912cbc /test/style
parent7ca602b7394160a472f143a13f9ee2b725098e51 (diff)
downloadqtlocation-mapboxgl-43c44eccdc56c50e41e8efbe5f7a34b57eed756f.tar.gz
Allow using tileSize: 512 as a switch to trade retina support for 512px raster tiles
Diffstat (limited to 'test/style')
-rw-r--r--test/style/style_parser.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/style/style_parser.cpp b/test/style/style_parser.cpp
index 8a9c4b3c4f..64ee4af9fc 100644
--- a/test/style/style_parser.cpp
+++ b/test/style/style_parser.cpp
@@ -90,7 +90,8 @@ TEST(StyleParser, ParseTileJSONRaster) {
auto result = StyleParser::parseTileJSON(
util::read_file("test/fixtures/style_parser/tilejson.raster.json"),
"mapbox://mapbox.satellite",
- SourceType::Raster);
+ SourceType::Raster,
+ 256);
EXPECT_EQ(0, result->minZoom);
EXPECT_EQ(15, result->maxZoom);
@@ -106,7 +107,8 @@ TEST(StyleParser, ParseTileJSONVector) {
auto result = StyleParser::parseTileJSON(
util::read_file("test/fixtures/style_parser/tilejson.vector.json"),
"mapbox://mapbox.streets",
- SourceType::Vector);
+ SourceType::Vector,
+ 256);
EXPECT_EQ(0, result->minZoom);
EXPECT_EQ(15, result->maxZoom);