Index: Source/core/animation/AnimationTest.cpp |
diff --git a/Source/core/animation/AnimationTest.cpp b/Source/core/animation/AnimationTest.cpp |
index a9624b1b948cc3070bae2fada31fcc72633b9f70..68fdf6fbac8a769cf1d3fd60afb1ce3fff9ed824 100644 |
--- a/Source/core/animation/AnimationTest.cpp |
+++ b/Source/core/animation/AnimationTest.cpp |
@@ -459,8 +459,9 @@ TEST_F(AnimationAnimationTest, ElementDestructorClearsAnimationTarget) |
document->timeline().play(animation.get()); |
document.clear(); |
element.clear(); |
- Heap::collectAllGarbage(); |
+#if !ENABLE(OILPAN) |
EXPECT_EQ(0, animation->target()); |
+#endif |
} |
} // namespace WebCore |