summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndrew Hay Kurtz <andrew.hay.kurtz@gmail.com>2019-10-29 13:49:22 -0700
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2020-04-14 22:30:40 +0300
commit0c95acf10379266e4142572b6cc7fb1c29271f3b (patch)
tree562c723da46b44a6c5905586f7a25f5194213d15 /test
parent08ad74216442a8c306a3d7ca4696f5ddb780557f (diff)
downloadqtlocation-mapboxgl-0c95acf10379266e4142572b6cc7fb1c29271f3b.tar.gz
Enable 'circle-sort-key' layout property
Diffstat (limited to 'test')
-rw-r--r--test/gl/bucket.test.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/gl/bucket.test.cpp b/test/gl/bucket.test.cpp
index 9f780fcffa..fd8644bfbc 100644
--- a/test/gl/bucket.test.cpp
+++ b/test/gl/bucket.test.cpp
@@ -47,10 +47,11 @@ TEST(Buckets, CircleBucket) {
gfx::BackendScope scope { backend };
gl::Context context{ backend };
- CircleBucket bucket { { {0, 0, 0}, MapMode::Static, 1.0, nullptr }, {} };
+ CircleBucket bucket{{}, MapMode::Static, 1.0};
ASSERT_FALSE(bucket.hasData());
ASSERT_FALSE(bucket.needsUpload());
+ // CircleBucket::addFeature() is a no-op.
GeometryCollection point { { { 0, 0 } } };
bucket.addFeature(StubGeometryTileFeature{{}, FeatureType::Point, point, properties},
point,
@@ -58,6 +59,10 @@ TEST(Buckets, CircleBucket) {
PatternLayerMap(),
0,
CanonicalTileID(0, 0, 0));
+ ASSERT_FALSE(bucket.hasData());
+ ASSERT_FALSE(bucket.needsUpload());
+
+ bucket.segments.emplace_back(0, 0);
ASSERT_TRUE(bucket.hasData());
ASSERT_TRUE(bucket.needsUpload());