Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(284)

Unified Diff: Source/core/animation/AnimationStackTest.cpp

Issue 287343003: Oilpan: fix failing animation unit tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/animation/AnimationPlayerTest.cpp ('k') | Source/core/animation/AnimationTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « Source/core/animation/AnimationPlayerTest.cpp ('k') | Source/core/animation/AnimationTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698