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

Unified Diff: webkit/compositor/WebAnimationTest.cpp

Issue 10920056: Make cc_unittests and webkit_compositor_unittests executable always (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename to webkit_compositor_bindings Created 8 years, 4 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/WebAnimationImpl.cpp ('k') | webkit/compositor/WebCompositorImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/compositor/WebAnimationTest.cpp
diff --git a/webkit/compositor/WebAnimationTest.cpp b/webkit/compositor/WebAnimationTest.cpp
deleted file mode 100644
index cb9be37b6866c02f930f21b826d24d183205db9a..0000000000000000000000000000000000000000
--- a/webkit/compositor/WebAnimationTest.cpp
+++ /dev/null
@@ -1,63 +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 <public/WebAnimation.h>
-
-#include <gtest/gtest.h>
-#include <public/WebFloatAnimationCurve.h>
-#include <wtf/OwnPtr.h>
-#include <wtf/PassOwnPtr.h>
-
-using namespace WebKit;
-
-namespace {
-
-// Linux/Win bots failed on this test.
-// https://bugs.webkit.org/show_bug.cgi?id=90651
-#if OS(WINDOWS)
-#define MAYBE_DefaultSettings DISABLED_DefaultSettings
-#elif OS(LINUX)
-#define MAYBE_DefaultSettings DISABLED_DefaultSettings
-#else
-#define MAYBE_DefaultSettings DefaultSettings
-#endif
-TEST(WebAnimationTest, MAYBE_DefaultSettings)
-{
- OwnPtr<WebAnimationCurve> curve = adoptPtr(WebFloatAnimationCurve::create());
- OwnPtr<WebAnimation> animation = adoptPtr(WebAnimation::create(*curve, WebAnimation::TargetPropertyOpacity));
-
- // 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());
-}
-
-// Linux/Win bots failed on this test.
-// https://bugs.webkit.org/show_bug.cgi?id=90651
-#if OS(WINDOWS)
-#define MAYBE_ModifiedSettings DISABLED_ModifiedSettings
-#elif OS(LINUX)
-#define MAYBE_ModifiedSettings DISABLED_ModifiedSettings
-#else
-#define MAYBE_ModifiedSettings ModifiedSettings
-#endif
-TEST(WebAnimationTest, MAYBE_ModifiedSettings)
-{
- OwnPtr<WebFloatAnimationCurve> curve = adoptPtr(WebFloatAnimationCurve::create());
- OwnPtr<WebAnimation> animation = adoptPtr(WebAnimation::create(*curve, WebAnimation::TargetPropertyOpacity));
- 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/WebAnimationImpl.cpp ('k') | webkit/compositor/WebCompositorImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698