Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Unified Diff: webkit/compositor_bindings/WebAnimationTest.cpp

Issue 11192050: Rename compositor bindings filenames to Chromium style (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/compositor_bindings/WebAnimationImpl.cpp ('k') | webkit/compositor_bindings/WebCompositorImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/compositor_bindings/WebAnimationTest.cpp
diff --git a/webkit/compositor_bindings/WebAnimationTest.cpp b/webkit/compositor_bindings/WebAnimationTest.cpp
deleted file mode 100644
index a122f9bf138a7bf972e7b36eb2883718cc5c372a..0000000000000000000000000000000000000000
--- a/webkit/compositor_bindings/WebAnimationTest.cpp
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "config.h"
-
-#include "WebAnimationImpl.h"
-#include "WebFloatAnimationCurveImpl.h"
-#include "base/memory/scoped_ptr.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-using namespace WebKit;
-
-namespace {
-
-TEST(WebAnimationTest, DefaultSettings)
-{
- scoped_ptr<WebAnimationCurve> curve(new WebFloatAnimationCurveImpl());
- scoped_ptr<WebAnimation> animation(new WebAnimationImpl(*curve, WebAnimation::TargetPropertyOpacity, 1));
-
- // Ensure that the defaults are correct.
- EXPECT_EQ(1, animation->iterations());
- EXPECT_EQ(0, animation->startTime());
- EXPECT_EQ(0, animation->timeOffset());
- EXPECT_FALSE(animation->alternatesDirection());
-}
-
-TEST(WebAnimationTest, ModifiedSettings)
-{
- scoped_ptr<WebFloatAnimationCurve> curve(new WebFloatAnimationCurveImpl());
- scoped_ptr<WebAnimation> animation(new WebAnimationImpl(*curve, WebAnimation::TargetPropertyOpacity, 1));
- animation->setIterations(2);
- animation->setStartTime(2);
- animation->setTimeOffset(2);
- animation->setAlternatesDirection(true);
-
- EXPECT_EQ(2, animation->iterations());
- EXPECT_EQ(2, animation->startTime());
- EXPECT_EQ(2, animation->timeOffset());
- EXPECT_TRUE(animation->alternatesDirection());
-}
-
-} // namespace
« no previous file with comments | « webkit/compositor_bindings/WebAnimationImpl.cpp ('k') | webkit/compositor_bindings/WebCompositorImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698