From 7f42e3970ee8c6a57fbb4dba7c564ff17c2eb6bb Mon Sep 17 00:00:00 2001 From: Chris Loer Date: Fri, 30 Mar 2018 16:02:56 -0700 Subject: [core] Convert GeometryTileWorker to "one-phase" loading Modest simplification refactoring (issue #10457). Also, fixes issue #11538, which was caused in part by a hole in the vestigial two-phase loading. --- test/tile/vector_tile.test.cpp | 33 --------------------------------- 1 file changed, 33 deletions(-) (limited to 'test/tile') diff --git a/test/tile/vector_tile.test.cpp b/test/tile/vector_tile.test.cpp index 9d42f7ae74..cd53c7c4a4 100644 --- a/test/tile/vector_tile.test.cpp +++ b/test/tile/vector_tile.test.cpp @@ -65,39 +65,6 @@ TEST(VectorTile, onError) { EXPECT_TRUE(tile.isComplete()); } -TEST(VectorTile, Issue7615) { - VectorTileTest test; - VectorTile tile(OverscaledTileID(0, 0, 0), "source", test.tileParameters, test.tileset); - - style::SymbolLayer symbolLayer("symbol", "source"); - std::vector symbolInstances; - auto symbolBucket = std::make_shared( - style::SymbolLayoutProperties::PossiblyEvaluated(), - std::map< - std::string, - std::pair>(), - 16.0f, 1.0f, 0.0f, false, false, false, std::move(symbolInstances)); - - // Simulate placement of a symbol layer. - tile.onPlacement(GeometryTile::PlacementResult { - {{ - symbolLayer.getID(), - symbolBucket - }}, - {}, - {}, - }, 0); - - // Subsequent onLayout should not cause the existing symbol bucket to be discarded. - tile.onLayout(GeometryTile::LayoutResult { - std::unordered_map>(), - nullptr, - nullptr, - }, 0); - - EXPECT_EQ(symbolBucket.get(), tile.getBucket(*symbolLayer.baseImpl)); -} - TEST(VectorTile, Issue8542) { VectorTileTest test; VectorTile tile(OverscaledTileID(0, 0, 0), "source", test.tileParameters, test.tileset); -- cgit v1.2.1