diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-09-26 14:58:00 +0300 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-09-26 15:54:03 +0300 |
commit | 34ab7be2251bc8f6afca29c7a2ce3b6f1bc7cb10 (patch) | |
tree | e417953320d3101a53a7152ee6abe041e4f2cfdd /test | |
parent | 1733e29f0ac7ffe7c1aa5bf54d8f710befcdd2ea (diff) | |
download | qtlocation-mapboxgl-34ab7be2251bc8f6afca29c7a2ce3b6f1bc7cb10.tar.gz |
[core] Layer::getPaintProperty() -> Layer::getProperty()
Diffstat (limited to 'test')
-rw-r--r-- | test/map/map.test.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/map/map.test.cpp b/test/map/map.test.cpp index 758d1fa7cd..7293c1c6ca 100644 --- a/test/map/map.test.cpp +++ b/test/map/map.test.cpp @@ -953,15 +953,15 @@ TEST(Map, UniversalStyleGetter) { Layer* lineLayer = test.map.getStyle().getLayer("line"); ASSERT_TRUE(lineLayer); - StyleProperty nonexistent = lineLayer->getPaintProperty("nonexistent"); + StyleProperty nonexistent = lineLayer->getProperty("nonexistent"); ASSERT_FALSE(nonexistent.value); EXPECT_EQ(StyleProperty::Kind::Undefined, nonexistent.kind); - StyleProperty undefined = lineLayer->getPaintProperty("line-blur"); + StyleProperty undefined = lineLayer->getProperty("line-blur"); ASSERT_FALSE(undefined.value); EXPECT_EQ(StyleProperty::Kind::Undefined, undefined.kind); - StyleProperty lineColor = lineLayer->getPaintProperty("line-color"); + StyleProperty lineColor = lineLayer->getProperty("line-color"); ASSERT_TRUE(lineColor.value); EXPECT_EQ(StyleProperty::Kind::Constant, lineColor.kind); ASSERT_TRUE(lineColor.value.getObject()); @@ -971,19 +971,19 @@ TEST(Map, UniversalStyleGetter) { EXPECT_EQ(0.0, *color.at("b").getDouble()); EXPECT_EQ(1.0, *color.at("a").getDouble()); - StyleProperty lineOpacity = lineLayer->getPaintProperty("line-opacity"); + StyleProperty lineOpacity = lineLayer->getProperty("line-opacity"); ASSERT_TRUE(lineOpacity.value); EXPECT_EQ(StyleProperty::Kind::Constant, lineOpacity.kind); ASSERT_TRUE(lineOpacity.value.getDouble()); EXPECT_EQ(0.5, *lineOpacity.value.getDouble()); - StyleProperty lineOpacityTransition = lineLayer->getPaintProperty("line-opacity-transition"); + StyleProperty lineOpacityTransition = lineLayer->getProperty("line-opacity-transition"); ASSERT_TRUE(lineOpacityTransition.value); EXPECT_EQ(StyleProperty::Kind::Transition, lineOpacityTransition.kind); ASSERT_TRUE(lineOpacityTransition.value.getArray()); EXPECT_EQ(3u, lineOpacityTransition.value.getArray()->size()); - StyleProperty lineWidth = lineLayer->getPaintProperty("line-width"); + StyleProperty lineWidth = lineLayer->getProperty("line-width"); ASSERT_TRUE(lineWidth.value); EXPECT_EQ(StyleProperty::Kind::Expression, lineWidth.kind); ASSERT_TRUE(lineWidth.value.getArray()); |