summaryrefslogtreecommitdiff
path: root/test/style/conversion/layer.test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/style/conversion/layer.test.cpp')
-rw-r--r--test/style/conversion/layer.test.cpp14
1 files changed, 2 insertions, 12 deletions
diff --git a/test/style/conversion/layer.test.cpp b/test/style/conversion/layer.test.cpp
index 22be61e809..d51d7d33e2 100644
--- a/test/style/conversion/layer.test.cpp
+++ b/test/style/conversion/layer.test.cpp
@@ -27,21 +27,11 @@ TEST(StyleConversion, LayerTransition) {
"duration": 400,
"delay": 500
}
- },
- "paint.class": {
- "background-color-transition": {
- "duration": 100
- }
}
})JSON");
ASSERT_EQ(400ms, *layer->as<BackgroundLayer>()->impl().paint
- .get<BackgroundColor>().getTransition({}).duration);
+ .get<BackgroundColor>().options.duration);
ASSERT_EQ(500ms, *layer->as<BackgroundLayer>()->impl().paint
- .get<BackgroundColor>().getTransition({}).delay);
-
- ASSERT_EQ(100ms, *layer->as<BackgroundLayer>()->impl().paint
- .get<BackgroundColor>().getTransition({"class"}).duration);
- ASSERT_FALSE(bool(layer->as<BackgroundLayer>()->impl().paint
- .get<BackgroundColor>().getTransition({"class"}).delay));
+ .get<BackgroundColor>().options.delay);
}