diff options
Diffstat (limited to 'Source/WebKit/chromium/tests/LayerChromiumTest.cpp')
-rw-r--r-- | Source/WebKit/chromium/tests/LayerChromiumTest.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/WebKit/chromium/tests/LayerChromiumTest.cpp b/Source/WebKit/chromium/tests/LayerChromiumTest.cpp index b9025b4c8..0e6eb0eb4 100644 --- a/Source/WebKit/chromium/tests/LayerChromiumTest.cpp +++ b/Source/WebKit/chromium/tests/LayerChromiumTest.cpp @@ -803,6 +803,18 @@ TEST(LayerChromiumLayerTreeHostTest, replaceMaskAndReplicaLayer) WebKit::WebCompositor::shutdown(); } +TEST(LayerChromiumLayerTreeHostTest, destroyHostWithNonNullRootLayer) +{ + WebKit::WebCompositor::initialize(0); + RefPtr<LayerChromium> root = LayerChromium::create(); + RefPtr<LayerChromium> child = LayerChromium::create(); + root->addChild(child); + OwnPtr<FakeCCLayerTreeHost> layerTreeHost(FakeCCLayerTreeHost::create()); + layerTreeHost->setRootLayer(root); + layerTreeHost.clear(); + WebKit::WebCompositor::shutdown(); +} + class MockLayerChromium : public LayerChromium { public: bool needsDisplay() const { return m_needsDisplay; } |