summaryrefslogtreecommitdiff
path: root/test/style/conversion/layer.test.cpp
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2018-10-29 14:29:16 +0200
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2018-10-30 16:23:31 +0200
commit99e1a8a3df1a08464d8529b6988c1665b87c7c8b (patch)
tree4d45675ef4b54d00d7ef2a4dccbc211522515dce /test/style/conversion/layer.test.cpp
parent2ef9580565e2125e07124d23c0bcf400c8736931 (diff)
downloadqtlocation-mapboxgl-99e1a8a3df1a08464d8529b6988c1665b87c7c8b.tar.gz
Remove style::Layer::is()/as()upstream/mikhail_drop_style_layer_cast
Diffstat (limited to 'test/style/conversion/layer.test.cpp')
-rw-r--r--test/style/conversion/layer.test.cpp6
1 files changed, 3 insertions, 3 deletions
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<BackgroundLayer>()->impl().paint
+ ASSERT_EQ(LayerType::Background, layer->getType());
+ ASSERT_EQ(400ms, *static_cast<BackgroundLayer*>(layer.get())->impl().paint
.get<BackgroundColor>().options.duration);
- ASSERT_EQ(500ms, *layer->as<BackgroundLayer>()->impl().paint
+ ASSERT_EQ(500ms, *static_cast<BackgroundLayer*>(layer.get())->impl().paint
.get<BackgroundColor>().options.delay);
}