| 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/AnimationInputHelpers.h" | 5 #include "core/animation/AnimationInputHelpers.h" |
| 6 | 6 |
| 7 #include <memory> |
| 7 #include "core/dom/Element.h" | 8 #include "core/dom/Element.h" |
| 8 #include "core/dom/ExceptionCode.h" | 9 #include "core/dom/ExceptionCode.h" |
| 9 #include "core/testing/DummyPageHolder.h" | 10 #include "core/testing/DummyPageHolder.h" |
| 10 #include "platform/animation/TimingFunction.h" | 11 #include "platform/animation/TimingFunction.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 12 #include <memory> | |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 class AnimationAnimationInputHelpersTest : public ::testing::Test { | 16 class AnimationAnimationInputHelpersTest : public ::testing::Test { |
| 17 public: | 17 public: |
| 18 CSSPropertyID KeyframeAttributeToCSSProperty(const String& property) { | 18 CSSPropertyID KeyframeAttributeToCSSProperty(const String& property) { |
| 19 return AnimationInputHelpers::KeyframeAttributeToCSSProperty(property, | 19 return AnimationInputHelpers::KeyframeAttributeToCSSProperty(property, |
| 20 *document); | 20 *document); |
| 21 } | 21 } |
| 22 | 22 |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 ParseTimingFunction("steps(3)", exception_state)->ToString()); | 134 ParseTimingFunction("steps(3)", exception_state)->ToString()); |
| 135 | 135 |
| 136 TimingFunctionThrows("steps(3, nowhere)", exception_state); | 136 TimingFunctionThrows("steps(3, nowhere)", exception_state); |
| 137 TimingFunctionThrows("steps(-3, end)", exception_state); | 137 TimingFunctionThrows("steps(-3, end)", exception_state); |
| 138 TimingFunctionThrows("frames(3, end)", exception_state); | 138 TimingFunctionThrows("frames(3, end)", exception_state); |
| 139 TimingFunctionThrows("frames(1)", exception_state); | 139 TimingFunctionThrows("frames(1)", exception_state); |
| 140 TimingFunctionThrows("cubic-bezier(0.1, 0, 4, 0.4)", exception_state); | 140 TimingFunctionThrows("cubic-bezier(0.1, 0, 4, 0.4)", exception_state); |
| 141 } | 141 } |
| 142 | 142 |
| 143 } // namespace blink | 143 } // namespace blink |
| OLD | NEW |