| Index: Source/core/animation/AnimationTest.cpp
|
| diff --git a/Source/core/animation/AnimationTest.cpp b/Source/core/animation/AnimationTest.cpp
|
| index beaae605149f07786aca0f6cc05fe5247f832345..3f76b5117629380aec6a91417cc692788f164681 100644
|
| --- a/Source/core/animation/AnimationTest.cpp
|
| +++ b/Source/core/animation/AnimationTest.cpp
|
| @@ -12,6 +12,7 @@
|
| #include "core/animation/AnimationTestHelper.h"
|
| #include "core/animation/DocumentTimeline.h"
|
| #include "core/animation/KeyframeEffectModel.h"
|
| +#include "core/animation/Timing.h"
|
| #include "platform/animation/TimingFunctionTestHelper.h"
|
|
|
| #include <gtest/gtest.h>
|
| @@ -43,25 +44,16 @@ protected:
|
| {
|
| }
|
|
|
| + template<typename T = double>
|
| + static PassRefPtr<Animation> createAnimation(Element* element, Vector<Dictionary> keyframeDictionaryVector, T timingInput = Timing::initialIterationDuration())
|
| + {
|
| + return Animation::create(element, Animation::convertEffectInput(element, keyframeDictionaryVector, true), timingInput);
|
| + }
|
| +
|
| v8::Isolate* isolate;
|
| v8::HandleScope scope;
|
| v8::Local<v8::Context> context;
|
| v8::Context::Scope contextScope;
|
| -
|
| - PassRefPtr<Animation> createAnimation(Element* element, Vector<Dictionary> keyframeDictionaryVector, Dictionary timingInput)
|
| - {
|
| - return Animation::createUnsafe(element, keyframeDictionaryVector, timingInput);
|
| - }
|
| -
|
| - PassRefPtr<Animation> createAnimation(Element* element, Vector<Dictionary> keyframeDictionaryVector, double timingInput)
|
| - {
|
| - return Animation::createUnsafe(element, keyframeDictionaryVector, timingInput);
|
| - }
|
| -
|
| - PassRefPtr<Animation> createAnimation(Element* element, Vector<Dictionary> keyframeDictionaryVector)
|
| - {
|
| - return Animation::createUnsafe(element, keyframeDictionaryVector);
|
| - }
|
| };
|
|
|
| TEST_F(AnimationAnimationV8Test, CanCreateAnAnimation)
|
|
|