Index: Source/core/animation/AnimationStackTest.cpp |
diff --git a/Source/core/animation/AnimationStackTest.cpp b/Source/core/animation/AnimationStackTest.cpp |
index 87a31178fe5c15f37aca7f5fb3285069a2b7aee0..333118fb98c223e9375ca21acc28c104e3633de5 100644 |
--- a/Source/core/animation/AnimationStackTest.cpp |
+++ b/Source/core/animation/AnimationStackTest.cpp |
@@ -126,6 +126,7 @@ TEST_F(AnimationAnimationStackTest, ForwardsFillDiscarding) |
WillBeHeapHashMap<CSSPropertyID, RefPtrWillBeMember<Interpolation> > interpolations; |
updateTimeline(11); |
+ Heap::collectAllGarbage(); |
interpolations = AnimationStack::activeInterpolations(&element->activeAnimations()->defaultStack(), 0, 0, Animation::DefaultPriority, 0); |
EXPECT_TRUE(interpolationValue(interpolations.get(CSSPropertyFontSize))->equals(AnimatableDouble::create(2).get())); |
EXPECT_EQ(3u, effects().size()); |
@@ -135,6 +136,7 @@ TEST_F(AnimationAnimationStackTest, ForwardsFillDiscarding) |
EXPECT_EQ(6, effects()[2]->sortInfo().startTime()); |
updateTimeline(13); |
+ Heap::collectAllGarbage(); |
interpolations = AnimationStack::activeInterpolations(&element->activeAnimations()->defaultStack(), 0, 0, Animation::DefaultPriority, 0); |
EXPECT_TRUE(interpolationValue(interpolations.get(CSSPropertyFontSize))->equals(AnimatableDouble::create(2).get())); |
EXPECT_EQ(3u, effects().size()); |
@@ -143,6 +145,7 @@ TEST_F(AnimationAnimationStackTest, ForwardsFillDiscarding) |
EXPECT_EQ(6, effects()[2]->sortInfo().startTime()); |
updateTimeline(15); |
+ Heap::collectAllGarbage(); |
interpolations = AnimationStack::activeInterpolations(&element->activeAnimations()->defaultStack(), 0, 0, Animation::DefaultPriority, 0); |
EXPECT_TRUE(interpolationValue(interpolations.get(CSSPropertyFontSize))->equals(AnimatableDouble::create(2).get())); |
EXPECT_EQ(2u, effects().size()); |
@@ -150,6 +153,7 @@ TEST_F(AnimationAnimationStackTest, ForwardsFillDiscarding) |
EXPECT_EQ(6, effects()[1]->sortInfo().startTime()); |
updateTimeline(17); |
+ Heap::collectAllGarbage(); |
interpolations = AnimationStack::activeInterpolations(&element->activeAnimations()->defaultStack(), 0, 0, Animation::DefaultPriority, 0); |
EXPECT_TRUE(interpolationValue(interpolations.get(CSSPropertyFontSize))->equals(AnimatableDouble::create(2).get())); |
EXPECT_EQ(1u, effects().size()); |