From c4e4cc5081965d03132eea754c27ece3c95961cb Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Wed, 22 Jun 2016 12:31:49 -0700 Subject: [core] Adjust layer source properties to better reflect reality * Layer source ID is immutable; must be provided to the constructor * Layer source layer is mutable * Layers with GeoJSON sources do not have a source layer While here, make Layer::copy impl-private. --- test/style/style_layer.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'test/style/style_layer.cpp') diff --git a/test/style/style_layer.cpp b/test/style/style_layer.cpp index 3274131966..9c6a6e924a 100644 --- a/test/style/style_layer.cpp +++ b/test/style/style_layer.cpp @@ -55,12 +55,12 @@ const auto duration = PropertyValue { 1.0f }; TEST(Layer, Clone) { testClone("background"); - testClone("circle"); + testClone("circle", "source"); testClone("custom", [](void*){}, [](void*, const CustomLayerRenderParameters&){}, [](void*){}, nullptr), - testClone("fill"); - testClone("line"); - testClone("raster"); - testClone("symbol"); + testClone("fill", "source"); + testClone("line", "source"); + testClone("raster", "source"); + testClone("symbol", "source"); } TEST(Layer, BackgroundProperties) { @@ -80,7 +80,7 @@ TEST(Layer, BackgroundProperties) { } TEST(Layer, CircleProperties) { - auto layer = std::make_unique("circle"); + auto layer = std::make_unique("circle", "source"); EXPECT_TRUE(layer->is()); // Paint properties @@ -105,7 +105,7 @@ TEST(Layer, CircleProperties) { } TEST(Layer, FillProperties) { - auto layer = std::make_unique("fill"); + auto layer = std::make_unique("fill", "source"); EXPECT_TRUE(layer->is()); // Paint properties @@ -133,7 +133,7 @@ TEST(Layer, FillProperties) { } TEST(Layer, LineProperties) { - auto layer = std::make_unique("line"); + auto layer = std::make_unique("line", "source"); EXPECT_TRUE(layer->is()); // Layout properties @@ -184,7 +184,7 @@ TEST(Layer, LineProperties) { } TEST(Layer, RasterProperties) { - auto layer = std::make_unique("raster"); + auto layer = std::make_unique("raster", "source"); EXPECT_TRUE(layer->is()); // Paint properties -- cgit v1.2.1