summaryrefslogtreecommitdiff
path: root/test/style/property_expression.test.cpp
diff options
context:
space:
mode:
authorAlexander Shalamov <alexander.shalamov@mapbox.com>2019-03-04 15:48:26 +0200
committerAlexander Shalamov <alexander.shalamov@mapbox.com>2019-03-04 22:17:37 +0200
commit156038efb2c762eaffb9237a780ef0393e27ceac (patch)
tree0e8d1a7701bf77f6f433c300d8a341fc1bd7f35b /test/style/property_expression.test.cpp
parentb1fcbd5b50eb525623c369cd97a75cfcf7078257 (diff)
downloadqtlocation-mapboxgl-156038efb2c762eaffb9237a780ef0393e27ceac.tar.gz
Review comments: minor changes + formattedSection => formattedSectionID
Diffstat (limited to 'test/style/property_expression.test.cpp')
-rw-r--r--test/style/property_expression.test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/style/property_expression.test.cpp b/test/style/property_expression.test.cpp
index a7d1d25660..a6ee22106a 100644
--- a/test/style/property_expression.test.cpp
+++ b/test/style/property_expression.test.cpp
@@ -125,13 +125,13 @@ TEST(PropertyExpression, Issue8460) {
TEST(PropertyExpression, TextSection) {
expression::Value formattedSection1 = 42.0;
PropertyExpression<double> ts1(textSection());
- EXPECT_DOUBLE_EQ(42.0, ts1.evaluate(expression::EvaluationContext().withFormattedSection(&formattedSection1)));
+ EXPECT_DOUBLE_EQ(42.0, ts1.evaluate(expression::EvaluationContext().withFormattedSectionID(&formattedSection1)));
expression::Value formattedSection2{"header"s};
PropertyExpression<std::string> ts2(textSection());
- EXPECT_EQ("header"s, ts2.evaluate(expression::EvaluationContext().withFormattedSection(&formattedSection2)));
+ EXPECT_EQ("header"s, ts2.evaluate(expression::EvaluationContext().withFormattedSectionID(&formattedSection2)));
// Evaluates to default, T().
PropertyExpression<Color> ts3(textSection());
- EXPECT_EQ(Color(), ts3.evaluate(expression::EvaluationContext().withFormattedSection(&formattedSection1)));
+ EXPECT_EQ(Color(), ts3.evaluate(expression::EvaluationContext().withFormattedSectionID(&formattedSection1)));
}