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

Unified Diff: cc/blink/web_animation_unittest.cc

Issue 576553002: remove WEB_ANIMATION_SUPPORTS_FULL_DIRECTION guards (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « cc/blink/web_animation_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/blink/web_animation_unittest.cc
diff --git a/cc/blink/web_animation_unittest.cc b/cc/blink/web_animation_unittest.cc
index cf9e05c782c9460d2f64e2fae7e689aed0a4387e..a059e080b9c0f951e7b24f1fa115a45ac9ba3525 100644
--- a/cc/blink/web_animation_unittest.cc
+++ b/cc/blink/web_animation_unittest.cc
@@ -24,11 +24,7 @@ TEST(WebCompositorAnimationTest, DefaultSettings) {
EXPECT_EQ(1, animation->iterations());
EXPECT_EQ(0, animation->startTime());
EXPECT_EQ(0, animation->timeOffset());
-#if WEB_ANIMATION_SUPPORTS_FULL_DIRECTION
EXPECT_EQ(WebCompositorAnimation::DirectionNormal, animation->direction());
-#else
- EXPECT_FALSE(animation->alternatesDirection());
-#endif
}
TEST(WebCompositorAnimationTest, ModifiedSettings) {
@@ -38,22 +34,12 @@ TEST(WebCompositorAnimationTest, ModifiedSettings) {
animation->setIterations(2);
animation->setStartTime(2);
animation->setTimeOffset(2);
-#if WEB_ANIMATION_SUPPORTS_FULL_DIRECTION
animation->setDirection(WebCompositorAnimation::DirectionReverse);
-#else
- animation->setAlternatesDirection(true);
-#endif
EXPECT_EQ(2, animation->iterations());
EXPECT_EQ(2, animation->startTime());
EXPECT_EQ(2, animation->timeOffset());
-#if WEB_ANIMATION_SUPPORTS_FULL_DIRECTION
EXPECT_EQ(WebCompositorAnimation::DirectionReverse, animation->direction());
-#else
- EXPECT_TRUE(animation->alternatesDirection());
- animation->setAlternatesDirection(false);
- EXPECT_FALSE(animation->alternatesDirection());
-#endif
}
} // namespace
« no previous file with comments | « cc/blink/web_animation_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698