summaryrefslogtreecommitdiff
path: root/test/style/properties.test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/style/properties.test.cpp')
-rw-r--r--test/style/properties.test.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/test/style/properties.test.cpp b/test/style/properties.test.cpp
index 279fadb8c2..4d63f7e671 100644
--- a/test/style/properties.test.cpp
+++ b/test/style/properties.test.cpp
@@ -1,6 +1,7 @@
#include <mbgl/test/util.hpp>
#include <mbgl/style/properties.hpp>
+#include <mbgl/style/expression/dsl.hpp>
#include <mbgl/renderer/property_evaluator.hpp>
#include <mbgl/renderer/data_driven_property_evaluator.hpp>
@@ -120,12 +121,10 @@ TEST(TransitioningDataDrivenPropertyValue, Evaluate) {
TransitionOptions(),
TimePoint::min()
};
-
- SourceFunction<float> sourceFunction = {
- "property_name",
- IdentityStops<float>()
- };
-
+
+ using namespace mbgl::style::expression::dsl;
+ SourceFunction<float> sourceFunction(number(get("property_name")));
+
Transitioning<DataDrivenPropertyValue<float>> t1 {
DataDrivenPropertyValue<float>(sourceFunction),
t0,