Index: Source/platform/graphics/GraphicsLayerTest.cpp |
diff --git a/Source/platform/graphics/GraphicsLayerTest.cpp b/Source/platform/graphics/GraphicsLayerTest.cpp |
index d7f5cbb55a21cfbbf0a58e688b8abc643bde9af5..b26a440d6a45eeddaa78f098129535900dd0e839 100644 |
--- a/Source/platform/graphics/GraphicsLayerTest.cpp |
+++ b/Source/platform/graphics/GraphicsLayerTest.cpp |
@@ -96,35 +96,6 @@ private: |
MockGraphicsLayerClient m_client; |
}; |
-TEST_F(GraphicsLayerTest, updateLayerShouldFlattenTransformWithAnimations) |
-{ |
- ASSERT_FALSE(m_platformLayer->hasActiveAnimation()); |
- |
- OwnPtr<WebFloatAnimationCurve> curve = adoptPtr(Platform::current()->compositorSupport()->createFloatAnimationCurve()); |
- curve->add(WebFloatKeyframe(0.0, 0.0)); |
- OwnPtr<WebCompositorAnimation> floatAnimation(adoptPtr(Platform::current()->compositorSupport()->createAnimation(*curve, WebCompositorAnimation::TargetPropertyOpacity))); |
- int animationId = floatAnimation->id(); |
- ASSERT_TRUE(m_platformLayer->addAnimation(floatAnimation.leakPtr())); |
- |
- ASSERT_TRUE(m_platformLayer->hasActiveAnimation()); |
- |
- m_graphicsLayer->setShouldFlattenTransform(false); |
- |
- m_platformLayer = m_graphicsLayer->platformLayer(); |
- ASSERT_TRUE(m_platformLayer); |
- |
- ASSERT_TRUE(m_platformLayer->hasActiveAnimation()); |
- m_platformLayer->removeAnimation(animationId); |
- ASSERT_FALSE(m_platformLayer->hasActiveAnimation()); |
- |
- m_graphicsLayer->setShouldFlattenTransform(true); |
- |
- m_platformLayer = m_graphicsLayer->platformLayer(); |
- ASSERT_TRUE(m_platformLayer); |
- |
- ASSERT_FALSE(m_platformLayer->hasActiveAnimation()); |
-} |
- |
class FakeScrollableArea : public ScrollableArea { |
public: |
virtual bool isActive() const override { return false; } |