diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2017-01-06 13:26:58 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2017-01-10 10:15:22 -0800 |
commit | ea4c0b77c39926c770b0003097509e36dc26621d (patch) | |
tree | cd84e61a2905e878b3f0ca04570d053047678059 /test | |
parent | 40051fb68ec710c5d83795740d0e3e8c75bb3cb3 (diff) | |
download | qtlocation-mapboxgl-ea4c0b77c39926c770b0003097509e36dc26621d.tar.gz |
[core] Replace FeatureIndex::collisionTile with a method parameter
This reduces state and simplifies the test added in the prior commit.
Diffstat (limited to 'test')
-rw-r--r-- | test/tile/vector_tile.test.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/test/tile/vector_tile.test.cpp b/test/tile/vector_tile.test.cpp index 9732f23b32..e34629bdba 100644 --- a/test/tile/vector_tile.test.cpp +++ b/test/tile/vector_tile.test.cpp @@ -62,14 +62,6 @@ TEST(VectorTile, Issue7615) { auto symbolBucket = std::make_shared<SymbolBucket>( MapMode::Continuous, style::SymbolLayoutProperties::Evaluated(), false, false); - // First onLayout is required so that a non-null FeatureIndex is available. - tile.onLayout(GeometryTile::LayoutResult { - {}, - std::make_unique<FeatureIndex>(), - nullptr, - 0 - }); - // Simulate placement of a symbol layer. tile.onPlacement(GeometryTile::PlacementResult { {{ @@ -80,7 +72,7 @@ TEST(VectorTile, Issue7615) { 0 }); - // Second onLayout should not cause the existing symbol bucket to be discarded. + // Subsequent onLayout should not cause the existing symbol bucket to be discarded. tile.onLayout(GeometryTile::LayoutResult { {}, nullptr, |