OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "core/animation/AnimationStack.h" | 5 #include "core/animation/AnimationStack.h" |
6 | 6 |
7 #include "core/animation/AnimationClock.h" | 7 #include "core/animation/AnimationClock.h" |
8 #include "core/animation/AnimationTimeline.h" | 8 #include "core/animation/AnimationTimeline.h" |
| 9 #include "core/animation/CompositorPendingAnimations.h" |
9 #include "core/animation/ElementAnimations.h" | 10 #include "core/animation/ElementAnimations.h" |
10 #include "core/animation/KeyframeEffectModel.h" | 11 #include "core/animation/KeyframeEffectModel.h" |
11 #include "core/animation/LegacyStyleInterpolation.h" | 12 #include "core/animation/LegacyStyleInterpolation.h" |
12 #include "core/animation/animatable/AnimatableDouble.h" | 13 #include "core/animation/animatable/AnimatableDouble.h" |
13 #include "core/testing/DummyPageHolder.h" | 14 #include "core/testing/DummyPageHolder.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
15 | 16 |
16 namespace blink { | 17 namespace blink { |
17 | 18 |
18 class AnimationAnimationStackTest : public ::testing::Test { | 19 class AnimationAnimationStackTest : public ::testing::Test { |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 164 |
164 updateTimeline(17); | 165 updateTimeline(17); |
165 Heap::collectAllGarbage(); | 166 Heap::collectAllGarbage(); |
166 interpolations = AnimationStack::activeInterpolations(&element->elementAnima
tions()->animationStack(), nullptr, nullptr, KeyframeEffect::DefaultPriority); | 167 interpolations = AnimationStack::activeInterpolations(&element->elementAnima
tions()->animationStack(), nullptr, nullptr, KeyframeEffect::DefaultPriority); |
167 EXPECT_EQ(1u, interpolations.size()); | 168 EXPECT_EQ(1u, interpolations.size()); |
168 EXPECT_TRUE(interpolationValue(interpolations, CSSPropertyFontSize)->equals(
AnimatableDouble::create(3).get())); | 169 EXPECT_TRUE(interpolationValue(interpolations, CSSPropertyFontSize)->equals(
AnimatableDouble::create(3).get())); |
169 EXPECT_EQ(1u, sampledEffectCount()); | 170 EXPECT_EQ(1u, sampledEffectCount()); |
170 } | 171 } |
171 | 172 |
172 } // namespace blink | 173 } // namespace blink |
OLD | NEW |