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

Unified Diff: third_party/WebKit/Source/core/animation/AnimationInputHelpersTest.cpp

Issue 2775143002: Implement frames() timing function (Closed)
Patch Set: Fix behaviour outside input range [0,1] Created 3 years, 8 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
Index: third_party/WebKit/Source/core/animation/AnimationInputHelpersTest.cpp
diff --git a/third_party/WebKit/Source/core/animation/AnimationInputHelpersTest.cpp b/third_party/WebKit/Source/core/animation/AnimationInputHelpersTest.cpp
index 4da31291a828aaca7a9472b51924e08826b22a5b..ded896e9f7b56a8332c30f4378a4da54e8e3d2be 100644
--- a/third_party/WebKit/Source/core/animation/AnimationInputHelpersTest.cpp
+++ b/third_party/WebKit/Source/core/animation/AnimationInputHelpersTest.cpp
@@ -113,6 +113,7 @@ TEST_F(AnimationAnimationInputHelpersTest, ParseAnimationTimingFunction) {
TimingFunctionRoundTrips("ease-in", exception_state);
TimingFunctionRoundTrips("ease-out", exception_state);
TimingFunctionRoundTrips("ease-in-out", exception_state);
+ TimingFunctionRoundTrips("frames(3)", exception_state);
TimingFunctionRoundTrips("cubic-bezier(0.1, 5, 0.23, 0)", exception_state);
EXPECT_EQ("steps(1, start)",
@@ -134,6 +135,8 @@ TEST_F(AnimationAnimationInputHelpersTest, ParseAnimationTimingFunction) {
TimingFunctionThrows("steps(3, nowhere)", exception_state);
TimingFunctionThrows("steps(-3, end)", exception_state);
+ TimingFunctionThrows("frames(3, end)", exception_state);
+ TimingFunctionThrows("frames(1)", exception_state);
TimingFunctionThrows("cubic-bezier(0.1, 0, 4, 0.4)", exception_state);
}

Powered by Google App Engine
This is Rietveld 408576698