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

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

Issue 1906463002: Web Animations: Throw TypeErrors for invalid timing parameters (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/KeyframeEffectTest.cpp
diff --git a/third_party/WebKit/Source/core/animation/KeyframeEffectTest.cpp b/third_party/WebKit/Source/core/animation/KeyframeEffectTest.cpp
index e5ecb3400b1e9b0d84c7d27b9c5b03eb5a0b2c72..3efd13661055f411541daa834f54792bb1b4d6fd 100644
--- a/third_party/WebKit/Source/core/animation/KeyframeEffectTest.cpp
+++ b/third_party/WebKit/Source/core/animation/KeyframeEffectTest.cpp
@@ -220,11 +220,13 @@ TEST_F(AnimationKeyframeEffectV8Test, SpecifiedSetters)
EXPECT_EQ("backwards", specified->fill());
EXPECT_EQ(0, specified->iterationStart());
- specified->setIterationStart(2);
+ specified->setIterationStart(2, exceptionState);
+ ASSERT_FALSE(exceptionState.hadException());
EXPECT_EQ(2, specified->iterationStart());
EXPECT_EQ(1, specified->iterations());
- specified->setIterations(10);
+ specified->setIterations(10, exceptionState);
+ ASSERT_FALSE(exceptionState.hadException());
EXPECT_EQ(10, specified->iterations());
EXPECT_EQ(1, specified->playbackRate());
@@ -259,7 +261,8 @@ TEST_F(AnimationKeyframeEffectV8Test, SetSpecifiedDuration)
UnrestrictedDoubleOrString inDuration;
inDuration.setUnrestrictedDouble(2.5);
- specified->setDuration(inDuration);
+ specified->setDuration(inDuration, exceptionState);
+ ASSERT_FALSE(exceptionState.hadException());
UnrestrictedDoubleOrString duration2;
specified->duration(duration2);
EXPECT_TRUE(duration2.isUnrestrictedDouble());

Powered by Google App Engine
This is Rietveld 408576698