summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/style/paint_property.test.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/style/paint_property.test.cpp b/test/style/paint_property.test.cpp
index 1854351f7a..fcca05f3bd 100644
--- a/test/style/paint_property.test.cpp
+++ b/test/style/paint_property.test.cpp
@@ -8,10 +8,12 @@ using namespace mbgl::style;
using namespace std::literals::chrono_literals;
float evaluate(TransitioningProperty<PropertyValue<float>>& property, Duration delta = Duration::zero()) {
+ ZoomHistory zoomHistory;
+ zoomHistory.update(0, TimePoint::min() + delta);
+
PropertyEvaluationParameters parameters {
- 0,
+ zoomHistory,
TimePoint::min() + delta,
- ZoomHistory(),
Duration::zero()
};
@@ -24,10 +26,12 @@ float evaluate(TransitioningProperty<PropertyValue<float>>& property, Duration d
}
PossiblyEvaluatedPropertyValue<float> evaluate(TransitioningProperty<DataDrivenPropertyValue<float>>& property, Duration delta = Duration::zero()) {
+ ZoomHistory zoomHistory;
+ zoomHistory.update(0, TimePoint::min() + delta);
+
PropertyEvaluationParameters parameters {
- 0,
+ zoomHistory,
TimePoint::min() + delta,
- ZoomHistory(),
Duration::zero()
};