summaryrefslogtreecommitdiff
path: root/test/map/map.test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/map/map.test.cpp')
-rw-r--r--test/map/map.test.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/map/map.test.cpp b/test/map/map.test.cpp
index 7293c1c6ca..5872f4ecd5 100644
--- a/test/map/map.test.cpp
+++ b/test/map/map.test.cpp
@@ -946,6 +946,9 @@ TEST(Map, UniversalStyleGetter) {
"line-color": "red",
"line-opacity": 0.5,
"line-width": ["get", "width"]
+ },
+ "layout": {
+ "line-cap": "butt"
}
}]
})STYLE");
@@ -999,4 +1002,10 @@ TEST(Map, UniversalStyleGetter) {
EXPECT_EQ("get", *operation[0].getString());
ASSERT_TRUE(operation[1].getString());
EXPECT_EQ("width", *operation[1].getString());
+
+ StyleProperty lineCap = lineLayer->getProperty("line-cap");
+ ASSERT_TRUE(lineCap.value);
+ EXPECT_EQ(StyleProperty::Kind::Constant, lineCap.kind);
+ ASSERT_TRUE(lineCap.value.getInt());
+ EXPECT_EQ(mbgl::underlying_type(mbgl::style::LineCapType::Butt), *lineCap.value.getInt());
} \ No newline at end of file