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 "sky/engine/config.h" | |
6 #include "sky/engine/core/animation/AnimationStack.h" | 5 #include "sky/engine/core/animation/AnimationStack.h" |
7 | 6 |
8 #include <gtest/gtest.h> | 7 #include <gtest/gtest.h> |
9 #include "sky/engine/core/animation/ActiveAnimations.h" | 8 #include "sky/engine/core/animation/ActiveAnimations.h" |
10 #include "sky/engine/core/animation/AnimationClock.h" | 9 #include "sky/engine/core/animation/AnimationClock.h" |
11 #include "sky/engine/core/animation/AnimationTimeline.h" | 10 #include "sky/engine/core/animation/AnimationTimeline.h" |
12 #include "sky/engine/core/animation/KeyframeEffectModel.h" | 11 #include "sky/engine/core/animation/KeyframeEffectModel.h" |
13 #include "sky/engine/core/animation/LegacyStyleInterpolation.h" | 12 #include "sky/engine/core/animation/LegacyStyleInterpolation.h" |
14 #include "sky/engine/core/animation/animatable/AnimatableDouble.h" | 13 #include "sky/engine/core/animation/animatable/AnimatableDouble.h" |
15 | 14 |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 EXPECT_TRUE(interpolationValue(interpolations.get(CSSPropertyFontSize))->equ
als(AnimatableDouble::create(3).get())); | 140 EXPECT_TRUE(interpolationValue(interpolations.get(CSSPropertyFontSize))->equ
als(AnimatableDouble::create(3).get())); |
142 EXPECT_EQ(2u, effects().size()); | 141 EXPECT_EQ(2u, effects().size()); |
143 | 142 |
144 updateTimeline(17); | 143 updateTimeline(17); |
145 interpolations = AnimationStack::activeInterpolations(&element->activeAnimat
ions()->defaultStack(), 0, 0, Animation::DefaultPriority, 0); | 144 interpolations = AnimationStack::activeInterpolations(&element->activeAnimat
ions()->defaultStack(), 0, 0, Animation::DefaultPriority, 0); |
146 EXPECT_TRUE(interpolationValue(interpolations.get(CSSPropertyFontSize))->equ
als(AnimatableDouble::create(3).get())); | 145 EXPECT_TRUE(interpolationValue(interpolations.get(CSSPropertyFontSize))->equ
als(AnimatableDouble::create(3).get())); |
147 EXPECT_EQ(1u, effects().size()); | 146 EXPECT_EQ(1u, effects().size()); |
148 } | 147 } |
149 | 148 |
150 } | 149 } |
OLD | NEW |