diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-09-25 23:31:56 +0300 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-09-26 11:57:39 +0300 |
commit | e78c31c4b53326f260a4274018b5cb98fac0dbb6 (patch) | |
tree | c81f74500b9a1d5a618ee2b12b54324ceaeec175 /test | |
parent | b5862c212769ee1372e4005dd1b96d49b72171e3 (diff) | |
download | qtlocation-mapboxgl-e78c31c4b53326f260a4274018b5cb98fac0dbb6.tar.gz |
[core] LayerProperty -> StyleProperty
Diffstat (limited to 'test')
-rw-r--r-- | test/map/map.test.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/test/map/map.test.cpp b/test/map/map.test.cpp index 35bae779c4..758d1fa7cd 100644 --- a/test/map/map.test.cpp +++ b/test/map/map.test.cpp @@ -953,17 +953,17 @@ TEST(Map, UniversalStyleGetter) { Layer* lineLayer = test.map.getStyle().getLayer("line"); ASSERT_TRUE(lineLayer); - LayerProperty nonexistent = lineLayer->getPaintProperty("nonexistent"); + StyleProperty nonexistent = lineLayer->getPaintProperty("nonexistent"); ASSERT_FALSE(nonexistent.value); - EXPECT_EQ(LayerProperty::Kind::Undefined, nonexistent.kind); + EXPECT_EQ(StyleProperty::Kind::Undefined, nonexistent.kind); - LayerProperty undefined = lineLayer->getPaintProperty("line-blur"); + StyleProperty undefined = lineLayer->getPaintProperty("line-blur"); ASSERT_FALSE(undefined.value); - EXPECT_EQ(LayerProperty::Kind::Undefined, undefined.kind); + EXPECT_EQ(StyleProperty::Kind::Undefined, undefined.kind); - LayerProperty lineColor = lineLayer->getPaintProperty("line-color"); + StyleProperty lineColor = lineLayer->getPaintProperty("line-color"); ASSERT_TRUE(lineColor.value); - EXPECT_EQ(LayerProperty::Kind::Constant, lineColor.kind); + EXPECT_EQ(StyleProperty::Kind::Constant, lineColor.kind); ASSERT_TRUE(lineColor.value.getObject()); const auto& color = *(lineColor.value.getObject()); EXPECT_EQ(1.0, *color.at("r").getDouble()); @@ -971,21 +971,21 @@ TEST(Map, UniversalStyleGetter) { EXPECT_EQ(0.0, *color.at("b").getDouble()); EXPECT_EQ(1.0, *color.at("a").getDouble()); - LayerProperty lineOpacity = lineLayer->getPaintProperty("line-opacity"); + StyleProperty lineOpacity = lineLayer->getPaintProperty("line-opacity"); ASSERT_TRUE(lineOpacity.value); - EXPECT_EQ(LayerProperty::Kind::Constant, lineOpacity.kind); + EXPECT_EQ(StyleProperty::Kind::Constant, lineOpacity.kind); ASSERT_TRUE(lineOpacity.value.getDouble()); EXPECT_EQ(0.5, *lineOpacity.value.getDouble()); - LayerProperty lineOpacityTransition = lineLayer->getPaintProperty("line-opacity-transition"); + StyleProperty lineOpacityTransition = lineLayer->getPaintProperty("line-opacity-transition"); ASSERT_TRUE(lineOpacityTransition.value); - EXPECT_EQ(LayerProperty::Kind::Transition, lineOpacityTransition.kind); + EXPECT_EQ(StyleProperty::Kind::Transition, lineOpacityTransition.kind); ASSERT_TRUE(lineOpacityTransition.value.getArray()); EXPECT_EQ(3u, lineOpacityTransition.value.getArray()->size()); - LayerProperty lineWidth = lineLayer->getPaintProperty("line-width"); + StyleProperty lineWidth = lineLayer->getPaintProperty("line-width"); ASSERT_TRUE(lineWidth.value); - EXPECT_EQ(LayerProperty::Kind::Expression, lineWidth.kind); + EXPECT_EQ(StyleProperty::Kind::Expression, lineWidth.kind); ASSERT_TRUE(lineWidth.value.getArray()); const auto& expression = *lineWidth.value.getArray(); |