| 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/InterpolationEffect.h" | 5 #include "core/animation/InterpolationEffect.h" |
| 6 | 6 |
| 7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
| 8 | 8 |
| 9 namespace blink { | 9 namespace blink { |
| 10 | 10 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 | 106 |
| 107 interpolationEffect->getActiveInterpolations(1.5, duration, activeInterpolat
ions); | 107 interpolationEffect->getActiveInterpolations(1.5, duration, activeInterpolat
ions); |
| 108 EXPECT_EQ(1ul, activeInterpolations.size()); | 108 EXPECT_EQ(1ul, activeInterpolations.size()); |
| 109 EXPECT_FLOAT_EQ(12.5f, getInterpolableNumber(activeInterpolations.at(0))); | 109 EXPECT_FLOAT_EQ(12.5f, getInterpolableNumber(activeInterpolations.at(0))); |
| 110 | 110 |
| 111 interpolationEffect->getActiveInterpolations(2, duration, activeInterpolatio
ns); | 111 interpolationEffect->getActiveInterpolations(2, duration, activeInterpolatio
ns); |
| 112 EXPECT_EQ(1ul, activeInterpolations.size()); | 112 EXPECT_EQ(1ul, activeInterpolations.size()); |
| 113 EXPECT_FLOAT_EQ(15, getInterpolableNumber(activeInterpolations.at(0))); | 113 EXPECT_FLOAT_EQ(15, getInterpolableNumber(activeInterpolations.at(0))); |
| 114 } | 114 } |
| 115 | 115 |
| 116 } | 116 } // namespace blink |
| OLD | NEW |