chromium/third_party/blink/renderer/core/animation/keyframe_effect_test.cc

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/renderer/core/animation/keyframe_effect.h"

#include <memory>

#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/bindings/core/v8/native_value_traits_impl.h"
#include "third_party/blink/renderer/bindings/core/v8/to_v8_traits.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_testing.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_effect_timing.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_keyframe_effect_options.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_object_builder.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_optional_effect_timing.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_union_cssnumericvalue_double.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_union_cssnumericvalue_string_unrestricteddouble.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_union_keyframeeffectoptions_unrestricteddouble.h"
#include "third_party/blink/renderer/core/animation/animation.h"
#include "third_party/blink/renderer/core/animation/animation_clock.h"
#include "third_party/blink/renderer/core/animation/animation_test_helpers.h"
#include "third_party/blink/renderer/core/animation/document_timeline.h"
#include "third_party/blink/renderer/core/animation/keyframe_effect_model.h"
#include "third_party/blink/renderer/core/animation/timing.h"
#include "third_party/blink/renderer/core/css/properties/longhands.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/dom/node_computed_style.h"
#include "third_party/blink/renderer/core/execution_context/security_context.h"
#include "third_party/blink/renderer/core/style/computed_style.h"
#include "third_party/blink/renderer/core/testing/page_test_base.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "v8/include/v8.h"

namespace blink {

#define EXPECT_TIMEDELTA(expected, observed)

SetV8ObjectPropertyAsNumber;
SetV8ObjectPropertyAsString;

class KeyframeEffectTest : public PageTestBase {};

class AnimationKeyframeEffectV8Test : public KeyframeEffectTest {};

TEST_F(AnimationKeyframeEffectV8Test, CanCreateAnAnimation) {}

TEST_F(AnimationKeyframeEffectV8Test, SetAndRetrieveEffectComposite) {}

TEST_F(AnimationKeyframeEffectV8Test, KeyframeCompositeOverridesEffect) {}

TEST_F(AnimationKeyframeEffectV8Test, CanSetDuration) {}

TEST_F(AnimationKeyframeEffectV8Test, CanOmitSpecifiedDuration) {}

TEST_F(AnimationKeyframeEffectV8Test, SpecifiedGetters) {}

TEST_F(AnimationKeyframeEffectV8Test, SpecifiedDurationGetter) {}

TEST_F(KeyframeEffectTest, TimeToEffectChange) {}

TEST_F(KeyframeEffectTest, CheckCanStartAnimationOnCompositorNoKeyframes) {}

TEST_F(KeyframeEffectTest, CheckCanStartAnimationOnCompositorNoTarget) {}

TEST_F(KeyframeEffectTest, CheckCanStartAnimationOnCompositorBadTarget) {}

TEST_F(KeyframeEffectTest, TranslationTransformsPreserveAxisAlignment) {}

TEST_F(KeyframeEffectTest, ScaleTransformsPreserveAxisAlignment) {}

TEST_F(KeyframeEffectTest, RotationTransformsDoNotPreserveAxisAlignment) {}

TEST_F(KeyframeEffectTest, RotationsDoNotPreserveAxisAlignment) {}

}  // namespace blink