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

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

Issue 2775143002: Implement frames() timing function (Closed)
Patch Set: Created 3 years, 9 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 bd29e827819c729c926101a80f13f1814e539c9f..e4ffde1a6b9b8ef660cf67583702b66c82595855 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", exceptionState);
timingFunctionRoundTrips("ease-out", exceptionState);
timingFunctionRoundTrips("ease-in-out", exceptionState);
+ timingFunctionRoundTrips("frames(3)", exceptionState);
timingFunctionRoundTrips("cubic-bezier(0.1, 5, 0.23, 0)", exceptionState);
EXPECT_EQ("steps(1, start)",
@@ -133,6 +134,8 @@ TEST_F(AnimationAnimationInputHelpersTest, ParseAnimationTimingFunction) {
timingFunctionThrows("steps(3, nowhere)", exceptionState);
timingFunctionThrows("steps(-3, end)", exceptionState);
+ timingFunctionThrows("frames(3, end)", exceptionState);
+ timingFunctionThrows("frames(1)", exceptionState);
timingFunctionThrows("cubic-bezier(0.1, 0, 4, 0.4)", exceptionState);
}

Powered by Google App Engine
This is Rietveld 408576698