From 99e1a8a3df1a08464d8529b6988c1665b87c7c8b Mon Sep 17 00:00:00 2001 From: Mikhail Pozdnyakov Date: Mon, 29 Oct 2018 14:29:16 +0200 Subject: Remove style::Layer::is()/as() --- test/style/conversion/layer.test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/style/conversion/layer.test.cpp') diff --git a/test/style/conversion/layer.test.cpp b/test/style/conversion/layer.test.cpp index 33cd329999..18754a09fb 100644 --- a/test/style/conversion/layer.test.cpp +++ b/test/style/conversion/layer.test.cpp @@ -25,9 +25,9 @@ TEST(StyleConversion, LayerTransition) { } } })JSON"); - - ASSERT_EQ(400ms, *layer->as()->impl().paint + ASSERT_EQ(LayerType::Background, layer->getType()); + ASSERT_EQ(400ms, *static_cast(layer.get())->impl().paint .get().options.duration); - ASSERT_EQ(500ms, *layer->as()->impl().paint + ASSERT_EQ(500ms, *static_cast(layer.get())->impl().paint .get().options.delay); } -- cgit v1.2.1