[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 1 | // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
[email protected] | aa0a9d3 | 2012-10-24 01:58:10 | [diff] [blame] | 5 | #include "cc/active_animation.h" |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 6 | |
[email protected] | 101441ce | 2012-10-16 01:45:03 | [diff] [blame] | 7 | #include "cc/test/animation_test_common.h" |
[email protected] | 7f0c53db | 2012-10-02 00:23:18 | [diff] [blame] | 8 | #include "testing/gmock/include/gmock/gmock.h" |
| 9 | #include "testing/gtest/include/gtest/gtest.h" |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 10 | |
| 11 | using namespace WebKitTests; |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 12 | |
[email protected] | ba56574 | 2012-11-10 09:29:48 | [diff] [blame] | 13 | namespace cc { |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 14 | namespace { |
| 15 | |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 16 | scoped_ptr<ActiveAnimation> createActiveAnimation(int iterations, double duration) |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 17 | { |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 18 | scoped_ptr<ActiveAnimation> toReturn(ActiveAnimation::create(make_scoped_ptr(new FakeFloatAnimationCurve(duration)).PassAs<AnimationCurve>(), 0, 1, ActiveAnimation::Opacity)); |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 19 | toReturn->setIterations(iterations); |
[email protected] | 9aca359 | 2012-10-12 15:57:09 | [diff] [blame] | 20 | return toReturn.Pass(); |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 21 | } |
| 22 | |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 23 | scoped_ptr<ActiveAnimation> createActiveAnimation(int iterations) |
[email protected] | 4dad47e | 2012-09-21 22:08:47 | [diff] [blame] | 24 | { |
| 25 | return createActiveAnimation(iterations, 1); |
| 26 | } |
| 27 | |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 28 | TEST(ActiveAnimationTest, TrimTimeZeroIterations) |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 29 | { |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 30 | scoped_ptr<ActiveAnimation> anim(createActiveAnimation(0)); |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 31 | EXPECT_EQ(0, anim->trimTimeToCurrentIteration(-1)); |
| 32 | EXPECT_EQ(0, anim->trimTimeToCurrentIteration(0)); |
| 33 | EXPECT_EQ(0, anim->trimTimeToCurrentIteration(1)); |
| 34 | } |
| 35 | |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 36 | TEST(ActiveAnimationTest, TrimTimeOneIteration) |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 37 | { |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 38 | scoped_ptr<ActiveAnimation> anim(createActiveAnimation(1)); |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 39 | EXPECT_EQ(0, anim->trimTimeToCurrentIteration(-1)); |
| 40 | EXPECT_EQ(0, anim->trimTimeToCurrentIteration(0)); |
| 41 | EXPECT_EQ(1, anim->trimTimeToCurrentIteration(1)); |
| 42 | EXPECT_EQ(1, anim->trimTimeToCurrentIteration(2)); |
| 43 | } |
| 44 | |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 45 | TEST(ActiveAnimationTest, TrimTimeInfiniteIterations) |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 46 | { |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 47 | scoped_ptr<ActiveAnimation> anim(createActiveAnimation(-1)); |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 48 | EXPECT_EQ(0, anim->trimTimeToCurrentIteration(0)); |
| 49 | EXPECT_EQ(0.5, anim->trimTimeToCurrentIteration(0.5)); |
| 50 | EXPECT_EQ(0, anim->trimTimeToCurrentIteration(1)); |
| 51 | EXPECT_EQ(0.5, anim->trimTimeToCurrentIteration(1.5)); |
| 52 | } |
| 53 | |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 54 | TEST(ActiveAnimationTest, TrimTimeAlternating) |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 55 | { |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 56 | scoped_ptr<ActiveAnimation> anim(createActiveAnimation(-1)); |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 57 | anim->setAlternatesDirection(true); |
| 58 | EXPECT_EQ(0, anim->trimTimeToCurrentIteration(0)); |
| 59 | EXPECT_EQ(0.5, anim->trimTimeToCurrentIteration(0.5)); |
| 60 | EXPECT_EQ(1, anim->trimTimeToCurrentIteration(1)); |
| 61 | EXPECT_EQ(0.75, anim->trimTimeToCurrentIteration(1.25)); |
| 62 | } |
| 63 | |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 64 | TEST(ActiveAnimationTest, TrimTimeStartTime) |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 65 | { |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 66 | scoped_ptr<ActiveAnimation> anim(createActiveAnimation(1)); |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 67 | anim->setStartTime(4); |
| 68 | EXPECT_EQ(0, anim->trimTimeToCurrentIteration(0)); |
| 69 | EXPECT_EQ(0, anim->trimTimeToCurrentIteration(4)); |
| 70 | EXPECT_EQ(0.5, anim->trimTimeToCurrentIteration(4.5)); |
| 71 | EXPECT_EQ(1, anim->trimTimeToCurrentIteration(5)); |
| 72 | EXPECT_EQ(1, anim->trimTimeToCurrentIteration(6)); |
| 73 | } |
| 74 | |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 75 | TEST(ActiveAnimationTest, TrimTimeTimeOffset) |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 76 | { |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 77 | scoped_ptr<ActiveAnimation> anim(createActiveAnimation(1)); |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 78 | anim->setTimeOffset(4); |
| 79 | anim->setStartTime(4); |
| 80 | EXPECT_EQ(0, anim->trimTimeToCurrentIteration(0)); |
| 81 | EXPECT_EQ(0.5, anim->trimTimeToCurrentIteration(0.5)); |
| 82 | EXPECT_EQ(1, anim->trimTimeToCurrentIteration(1)); |
| 83 | EXPECT_EQ(1, anim->trimTimeToCurrentIteration(1)); |
| 84 | } |
| 85 | |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 86 | TEST(ActiveAnimationTest, TrimTimePauseResume) |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 87 | { |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 88 | scoped_ptr<ActiveAnimation> anim(createActiveAnimation(1)); |
| 89 | anim->setRunState(ActiveAnimation::Running, 0); |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 90 | EXPECT_EQ(0, anim->trimTimeToCurrentIteration(0)); |
| 91 | EXPECT_EQ(0.5, anim->trimTimeToCurrentIteration(0.5)); |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 92 | anim->setRunState(ActiveAnimation::Paused, 0.5); |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 93 | EXPECT_EQ(0.5, anim->trimTimeToCurrentIteration(1024)); |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 94 | anim->setRunState(ActiveAnimation::Running, 1024); |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 95 | EXPECT_EQ(0.5, anim->trimTimeToCurrentIteration(1024)); |
| 96 | EXPECT_EQ(1, anim->trimTimeToCurrentIteration(1024.5)); |
| 97 | } |
| 98 | |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 99 | TEST(ActiveAnimationTest, TrimTimeSuspendResume) |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 100 | { |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 101 | scoped_ptr<ActiveAnimation> anim(createActiveAnimation(1)); |
| 102 | anim->setRunState(ActiveAnimation::Running, 0); |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 103 | EXPECT_EQ(0, anim->trimTimeToCurrentIteration(0)); |
| 104 | EXPECT_EQ(0.5, anim->trimTimeToCurrentIteration(0.5)); |
| 105 | anim->suspend(0.5); |
| 106 | EXPECT_EQ(0.5, anim->trimTimeToCurrentIteration(1024)); |
| 107 | anim->resume(1024); |
| 108 | EXPECT_EQ(0.5, anim->trimTimeToCurrentIteration(1024)); |
| 109 | EXPECT_EQ(1, anim->trimTimeToCurrentIteration(1024.5)); |
| 110 | } |
| 111 | |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 112 | TEST(ActiveAnimationTest, TrimTimeZeroDuration) |
[email protected] | 4dad47e | 2012-09-21 22:08:47 | [diff] [blame] | 113 | { |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 114 | scoped_ptr<ActiveAnimation> anim(createActiveAnimation(0, 0)); |
| 115 | anim->setRunState(ActiveAnimation::Running, 0); |
[email protected] | 4dad47e | 2012-09-21 22:08:47 | [diff] [blame] | 116 | EXPECT_EQ(0, anim->trimTimeToCurrentIteration(-1)); |
| 117 | EXPECT_EQ(0, anim->trimTimeToCurrentIteration(0)); |
| 118 | EXPECT_EQ(0, anim->trimTimeToCurrentIteration(1)); |
| 119 | } |
| 120 | |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 121 | TEST(ActiveAnimationTest, IsFinishedAtZeroIterations) |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 122 | { |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 123 | scoped_ptr<ActiveAnimation> anim(createActiveAnimation(0)); |
| 124 | anim->setRunState(ActiveAnimation::Running, 0); |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 125 | EXPECT_FALSE(anim->isFinishedAt(-1)); |
| 126 | EXPECT_TRUE(anim->isFinishedAt(0)); |
| 127 | EXPECT_TRUE(anim->isFinishedAt(1)); |
| 128 | } |
| 129 | |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 130 | TEST(ActiveAnimationTest, IsFinishedAtOneIteration) |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 131 | { |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 132 | scoped_ptr<ActiveAnimation> anim(createActiveAnimation(1)); |
| 133 | anim->setRunState(ActiveAnimation::Running, 0); |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 134 | EXPECT_FALSE(anim->isFinishedAt(-1)); |
| 135 | EXPECT_FALSE(anim->isFinishedAt(0)); |
| 136 | EXPECT_TRUE(anim->isFinishedAt(1)); |
| 137 | EXPECT_TRUE(anim->isFinishedAt(2)); |
| 138 | } |
| 139 | |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 140 | TEST(ActiveAnimationTest, IsFinishedAtInfiniteIterations) |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 141 | { |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 142 | scoped_ptr<ActiveAnimation> anim(createActiveAnimation(-1)); |
| 143 | anim->setRunState(ActiveAnimation::Running, 0); |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 144 | EXPECT_FALSE(anim->isFinishedAt(0)); |
| 145 | EXPECT_FALSE(anim->isFinishedAt(0.5)); |
| 146 | EXPECT_FALSE(anim->isFinishedAt(1)); |
| 147 | EXPECT_FALSE(anim->isFinishedAt(1.5)); |
| 148 | } |
| 149 | |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 150 | TEST(ActiveAnimationTest, IsFinishedAtNotRunning) |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 151 | { |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 152 | scoped_ptr<ActiveAnimation> anim(createActiveAnimation(0)); |
| 153 | anim->setRunState(ActiveAnimation::Running, 0); |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 154 | EXPECT_TRUE(anim->isFinishedAt(0)); |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 155 | anim->setRunState(ActiveAnimation::Paused, 0); |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 156 | EXPECT_FALSE(anim->isFinishedAt(0)); |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 157 | anim->setRunState(ActiveAnimation::WaitingForNextTick, 0); |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 158 | EXPECT_FALSE(anim->isFinishedAt(0)); |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 159 | anim->setRunState(ActiveAnimation::WaitingForTargetAvailability, 0); |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 160 | EXPECT_FALSE(anim->isFinishedAt(0)); |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 161 | anim->setRunState(ActiveAnimation::WaitingForStartTime, 0); |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 162 | EXPECT_FALSE(anim->isFinishedAt(0)); |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 163 | anim->setRunState(ActiveAnimation::Finished, 0); |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 164 | EXPECT_TRUE(anim->isFinishedAt(0)); |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 165 | anim->setRunState(ActiveAnimation::Aborted, 0); |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 166 | EXPECT_TRUE(anim->isFinishedAt(0)); |
| 167 | } |
| 168 | |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 169 | TEST(ActiveAnimationTest, IsFinished) |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 170 | { |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 171 | scoped_ptr<ActiveAnimation> anim(createActiveAnimation(1)); |
| 172 | anim->setRunState(ActiveAnimation::Running, 0); |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 173 | EXPECT_FALSE(anim->isFinished()); |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 174 | anim->setRunState(ActiveAnimation::Paused, 0); |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 175 | EXPECT_FALSE(anim->isFinished()); |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 176 | anim->setRunState(ActiveAnimation::WaitingForNextTick, 0); |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 177 | EXPECT_FALSE(anim->isFinished()); |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 178 | anim->setRunState(ActiveAnimation::WaitingForTargetAvailability, 0); |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 179 | EXPECT_FALSE(anim->isFinished()); |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 180 | anim->setRunState(ActiveAnimation::WaitingForStartTime, 0); |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 181 | EXPECT_FALSE(anim->isFinished()); |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 182 | anim->setRunState(ActiveAnimation::Finished, 0); |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 183 | EXPECT_TRUE(anim->isFinished()); |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 184 | anim->setRunState(ActiveAnimation::Aborted, 0); |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 185 | EXPECT_TRUE(anim->isFinished()); |
| 186 | } |
| 187 | |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 188 | TEST(ActiveAnimationTest, IsFinishedNeedsSynchronizedStartTime) |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 189 | { |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 190 | scoped_ptr<ActiveAnimation> anim(createActiveAnimation(1)); |
| 191 | anim->setRunState(ActiveAnimation::Running, 2); |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 192 | EXPECT_FALSE(anim->isFinished()); |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 193 | anim->setRunState(ActiveAnimation::Paused, 2); |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 194 | EXPECT_FALSE(anim->isFinished()); |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 195 | anim->setRunState(ActiveAnimation::WaitingForNextTick, 2); |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 196 | EXPECT_FALSE(anim->isFinished()); |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 197 | anim->setRunState(ActiveAnimation::WaitingForTargetAvailability, 2); |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 198 | EXPECT_FALSE(anim->isFinished()); |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 199 | anim->setRunState(ActiveAnimation::WaitingForStartTime, 2); |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 200 | EXPECT_FALSE(anim->isFinished()); |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 201 | anim->setRunState(ActiveAnimation::Finished, 0); |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 202 | EXPECT_TRUE(anim->isFinished()); |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 203 | anim->setRunState(ActiveAnimation::Aborted, 0); |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 204 | EXPECT_TRUE(anim->isFinished()); |
| 205 | } |
| 206 | |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 207 | TEST(ActiveAnimationTest, RunStateChangesIgnoredWhileSuspended) |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 208 | { |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 209 | scoped_ptr<ActiveAnimation> anim(createActiveAnimation(1)); |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 210 | anim->suspend(0); |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 211 | EXPECT_EQ(ActiveAnimation::Paused, anim->runState()); |
| 212 | anim->setRunState(ActiveAnimation::Running, 0); |
| 213 | EXPECT_EQ(ActiveAnimation::Paused, anim->runState()); |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 214 | anim->resume(0); |
[email protected] | 96baf3e | 2012-10-22 23:09:55 | [diff] [blame] | 215 | anim->setRunState(ActiveAnimation::Running, 0); |
| 216 | EXPECT_EQ(ActiveAnimation::Running, anim->runState()); |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 217 | } |
| 218 | |
[email protected] | ba56574 | 2012-11-10 09:29:48 | [diff] [blame] | 219 | } // namespace |
| 220 | } // namespace cc |