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

Unified Diff: third_party/WebKit/Source/core/animation/EffectStackTest.cpp

Issue 2522823002: Blink Animation: Rename AnimationStack to EffectStack. (Closed)
Patch Set: Created 4 years, 1 month 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
Index: third_party/WebKit/Source/core/animation/EffectStackTest.cpp
diff --git a/third_party/WebKit/Source/core/animation/AnimationStackTest.cpp b/third_party/WebKit/Source/core/animation/EffectStackTest.cpp
similarity index 89%
rename from third_party/WebKit/Source/core/animation/AnimationStackTest.cpp
rename to third_party/WebKit/Source/core/animation/EffectStackTest.cpp
index 9927b35bb67873ec36cb4c83a4873f0e7b6c3446..4bd4d125b51375038df9d7100430402b84a472ba 100644
--- a/third_party/WebKit/Source/core/animation/AnimationStackTest.cpp
+++ b/third_party/WebKit/Source/core/animation/EffectStackTest.cpp
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "core/animation/AnimationStack.h"
+#include "core/animation/EffectStack.h"
#include "core/animation/AnimationClock.h"
#include "core/animation/CompositorPendingAnimations.h"
@@ -17,7 +17,7 @@
namespace blink {
-class AnimationAnimationStackTest : public ::testing::Test {
+class AnimationEffectStackTest : public ::testing::Test {
protected:
virtual void SetUp() {
pageHolder = DummyPageHolder::create();
@@ -86,7 +86,7 @@ class AnimationAnimationStackTest : public ::testing::Test {
Persistent<Element> element;
};
-TEST_F(AnimationAnimationStackTest, ElementAnimationsSorted) {
+TEST_F(AnimationEffectStackTest, ElementAnimationsSorted) {
play(makeKeyframeEffect(
makeEffectModel(CSSPropertyFontSize, AnimatableDouble::create(1))),
10);
@@ -96,7 +96,7 @@ TEST_F(AnimationAnimationStackTest, ElementAnimationsSorted) {
play(makeKeyframeEffect(
makeEffectModel(CSSPropertyFontSize, AnimatableDouble::create(3))),
5);
- ActiveInterpolationsMap result = AnimationStack::activeInterpolations(
+ ActiveInterpolationsMap result = EffectStack::activeInterpolations(
&element->elementAnimations()->animationStack(), 0, 0,
KeyframeEffectReadOnly::DefaultPriority);
EXPECT_EQ(1u, result.size());
@@ -104,7 +104,7 @@ TEST_F(AnimationAnimationStackTest, ElementAnimationsSorted) {
->equals(AnimatableDouble::create(3).get()));
}
-TEST_F(AnimationAnimationStackTest, NewAnimations) {
+TEST_F(AnimationEffectStackTest, NewAnimations) {
play(makeKeyframeEffect(
makeEffectModel(CSSPropertyFontSize, AnimatableDouble::create(1))),
15);
@@ -118,7 +118,7 @@ TEST_F(AnimationAnimationStackTest, NewAnimations) {
makeEffectModel(CSSPropertyZIndex, AnimatableDouble::create(4)));
newAnimations.append(inert1);
newAnimations.append(inert2);
- ActiveInterpolationsMap result = AnimationStack::activeInterpolations(
+ ActiveInterpolationsMap result = EffectStack::activeInterpolations(
&element->elementAnimations()->animationStack(), &newAnimations, 0,
KeyframeEffectReadOnly::DefaultPriority);
EXPECT_EQ(2u, result.size());
@@ -128,7 +128,7 @@ TEST_F(AnimationAnimationStackTest, NewAnimations) {
->equals(AnimatableDouble::create(4).get()));
}
-TEST_F(AnimationAnimationStackTest, CancelledAnimations) {
+TEST_F(AnimationEffectStackTest, CancelledAnimations) {
HeapHashSet<Member<const Animation>> cancelledAnimations;
Animation* animation =
play(makeKeyframeEffect(makeEffectModel(CSSPropertyFontSize,
@@ -138,7 +138,7 @@ TEST_F(AnimationAnimationStackTest, CancelledAnimations) {
play(makeKeyframeEffect(
makeEffectModel(CSSPropertyZIndex, AnimatableDouble::create(2))),
0);
- ActiveInterpolationsMap result = AnimationStack::activeInterpolations(
+ ActiveInterpolationsMap result = EffectStack::activeInterpolations(
&element->elementAnimations()->animationStack(), 0, &cancelledAnimations,
KeyframeEffectReadOnly::DefaultPriority);
EXPECT_EQ(1u, result.size());
@@ -146,12 +146,12 @@ TEST_F(AnimationAnimationStackTest, CancelledAnimations) {
->equals(AnimatableDouble::create(2).get()));
}
-TEST_F(AnimationAnimationStackTest, ClearedEffectsRemoved) {
+TEST_F(AnimationEffectStackTest, ClearedEffectsRemoved) {
Animation* animation =
play(makeKeyframeEffect(makeEffectModel(CSSPropertyFontSize,
AnimatableDouble::create(1))),
10);
- ActiveInterpolationsMap result = AnimationStack::activeInterpolations(
+ ActiveInterpolationsMap result = EffectStack::activeInterpolations(
&element->elementAnimations()->animationStack(), 0, 0,
KeyframeEffectReadOnly::DefaultPriority);
EXPECT_EQ(1u, result.size());
@@ -159,13 +159,13 @@ TEST_F(AnimationAnimationStackTest, ClearedEffectsRemoved) {
->equals(AnimatableDouble::create(1).get()));
animation->setEffect(0);
- result = AnimationStack::activeInterpolations(
+ result = EffectStack::activeInterpolations(
&element->elementAnimations()->animationStack(), 0, 0,
KeyframeEffectReadOnly::DefaultPriority);
EXPECT_EQ(0u, result.size());
}
-TEST_F(AnimationAnimationStackTest, ForwardsFillDiscarding) {
+TEST_F(AnimationEffectStackTest, ForwardsFillDiscarding) {
play(makeKeyframeEffect(
makeEffectModel(CSSPropertyFontSize, AnimatableDouble::create(1))),
2);
@@ -180,7 +180,7 @@ TEST_F(AnimationAnimationStackTest, ForwardsFillDiscarding) {
updateTimeline(11);
ThreadState::current()->collectAllGarbage();
- interpolations = AnimationStack::activeInterpolations(
+ interpolations = EffectStack::activeInterpolations(
&element->elementAnimations()->animationStack(), nullptr, nullptr,
KeyframeEffectReadOnly::DefaultPriority);
EXPECT_EQ(1u, interpolations.size());
@@ -190,7 +190,7 @@ TEST_F(AnimationAnimationStackTest, ForwardsFillDiscarding) {
updateTimeline(13);
ThreadState::current()->collectAllGarbage();
- interpolations = AnimationStack::activeInterpolations(
+ interpolations = EffectStack::activeInterpolations(
&element->elementAnimations()->animationStack(), nullptr, nullptr,
KeyframeEffectReadOnly::DefaultPriority);
EXPECT_EQ(1u, interpolations.size());
@@ -200,7 +200,7 @@ TEST_F(AnimationAnimationStackTest, ForwardsFillDiscarding) {
updateTimeline(15);
ThreadState::current()->collectAllGarbage();
- interpolations = AnimationStack::activeInterpolations(
+ interpolations = EffectStack::activeInterpolations(
&element->elementAnimations()->animationStack(), nullptr, nullptr,
KeyframeEffectReadOnly::DefaultPriority);
EXPECT_EQ(1u, interpolations.size());
@@ -210,7 +210,7 @@ TEST_F(AnimationAnimationStackTest, ForwardsFillDiscarding) {
updateTimeline(17);
ThreadState::current()->collectAllGarbage();
- interpolations = AnimationStack::activeInterpolations(
+ interpolations = EffectStack::activeInterpolations(
&element->elementAnimations()->animationStack(), nullptr, nullptr,
KeyframeEffectReadOnly::DefaultPriority);
EXPECT_EQ(1u, interpolations.size());

Powered by Google App Engine
This is Rietveld 408576698