| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 #include "core/animation/KeyframeEffectModel.h" | 32 #include "core/animation/KeyframeEffectModel.h" |
| 33 | 33 |
| 34 #include "core/animation/LegacyStyleInterpolation.h" | 34 #include "core/animation/LegacyStyleInterpolation.h" |
| 35 #include "core/animation/animatable/AnimatableLength.h" | 35 #include "core/animation/animatable/AnimatableLength.h" |
| 36 #include "core/animation/animatable/AnimatableUnknown.h" | 36 #include "core/animation/animatable/AnimatableUnknown.h" |
| 37 #include "core/css/CSSPrimitiveValue.h" | 37 #include "core/css/CSSPrimitiveValue.h" |
| 38 #include "core/dom/Element.h" | 38 #include "core/dom/Element.h" |
| 39 #include <gtest/gtest.h> | 39 #include <gtest/gtest.h> |
| 40 | 40 |
| 41 using namespace blink; | 41 namespace blink { |
| 42 | |
| 43 namespace { | |
| 44 | 42 |
| 45 const double duration = 1.0; | 43 const double duration = 1.0; |
| 46 | 44 |
| 47 PassRefPtrWillBeRawPtr<AnimatableValue> unknownAnimatableValue(double n) | 45 PassRefPtrWillBeRawPtr<AnimatableValue> unknownAnimatableValue(double n) |
| 48 { | 46 { |
| 49 return AnimatableUnknown::create(CSSPrimitiveValue::create(n, CSSPrimitiveVa
lue::CSS_UNKNOWN).get()); | 47 return AnimatableUnknown::create(CSSPrimitiveValue::create(n, CSSPrimitiveVa
lue::CSS_UNKNOWN).get()); |
| 50 } | 48 } |
| 51 | 49 |
| 52 PassRefPtrWillBeRawPtr<AnimatableValue> pixelAnimatableValue(double n) | 50 PassRefPtrWillBeRawPtr<AnimatableValue> pixelAnimatableValue(double n) |
| 53 { | 51 { |
| (...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 566 EXPECT_DOUBLE_EQ(0.6, result[5]->offset()); | 564 EXPECT_DOUBLE_EQ(0.6, result[5]->offset()); |
| 567 EXPECT_DOUBLE_EQ(0.7, result[6]->offset()); | 565 EXPECT_DOUBLE_EQ(0.7, result[6]->offset()); |
| 568 EXPECT_DOUBLE_EQ(0.8, result[7]->offset()); | 566 EXPECT_DOUBLE_EQ(0.8, result[7]->offset()); |
| 569 EXPECT_DOUBLE_EQ(0.85, result[8]->offset()); | 567 EXPECT_DOUBLE_EQ(0.85, result[8]->offset()); |
| 570 EXPECT_DOUBLE_EQ(0.9, result[9]->offset()); | 568 EXPECT_DOUBLE_EQ(0.9, result[9]->offset()); |
| 571 EXPECT_DOUBLE_EQ(0.95, result[10]->offset()); | 569 EXPECT_DOUBLE_EQ(0.95, result[10]->offset()); |
| 572 EXPECT_DOUBLE_EQ(1.0, result[11]->offset()); | 570 EXPECT_DOUBLE_EQ(1.0, result[11]->offset()); |
| 573 } | 571 } |
| 574 | 572 |
| 575 } // namespace blink | 573 } // namespace blink |
| OLD | NEW |