| Index: ui/base/animation/animation_unittest.cc
|
| diff --git a/ui/base/animation/animation_unittest.cc b/ui/base/animation/animation_unittest.cc
|
| index 7d87600444fcf143b3b1f1475f5294e0a484af3c..3961aae688e1456decb5a2a2a5b2297f3927df2a 100644
|
| --- a/ui/base/animation/animation_unittest.cc
|
| +++ b/ui/base/animation/animation_unittest.cc
|
| @@ -143,4 +143,16 @@ TEST_F(AnimationTest, ShouldRenderRichAnimation) {
|
| #endif
|
| }
|
|
|
| +// Test that current value is always 0 after Start() is called.
|
| +TEST_F(AnimationTest, StartState) {
|
| + LinearAnimation animation(100, 60, NULL);
|
| + EXPECT_EQ(0.0, animation.GetCurrentValue());
|
| + animation.Start();
|
| + EXPECT_EQ(0.0, animation.GetCurrentValue());
|
| + animation.End();
|
| + EXPECT_EQ(1.0, animation.GetCurrentValue());
|
| + animation.Start();
|
| + EXPECT_EQ(0.0, animation.GetCurrentValue());
|
| +}
|
| +
|
| } // namespace ui
|
|
|