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

Unified Diff: Source/core/animation/AnimationTest.cpp

Issue 939623002: Add TypeChecking=Unrestricted to Web Animation APIs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Drop AnimationAnimationPlayerTest.SetCurrentTimeUnrestrictedDouble Created 5 years, 10 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 | « Source/core/animation/AnimationPlayerTest.cpp ('k') | Source/core/animation/AnimationTimeline.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/AnimationTest.cpp
diff --git a/Source/core/animation/AnimationTest.cpp b/Source/core/animation/AnimationTest.cpp
index bec3991246e5e82de907eb3518fabf6c2a2414b7..8e43eb5f11942ae99afa0b146f9c8bfe7bbf59c7 100644
--- a/Source/core/animation/AnimationTest.cpp
+++ b/Source/core/animation/AnimationTest.cpp
@@ -254,10 +254,10 @@ TEST_F(AnimationAnimationV8Test, SpecifiedDurationGetter)
RefPtrWillBeRawPtr<Animation> animationWithDuration = createAnimation(element.get(), jsKeyframes, timingInputDictionaryWithDuration, exceptionState);
RefPtrWillBeRawPtr<AnimationNodeTiming> specifiedWithDuration = animationWithDuration->timing();
- DoubleOrString duration;
+ UnrestrictedDoubleOrString duration;
specifiedWithDuration->duration(duration);
- EXPECT_TRUE(duration.isDouble());
- EXPECT_EQ(2.5, duration.getAsDouble());
+ EXPECT_TRUE(duration.isUnrestrictedDouble());
+ EXPECT_EQ(2.5, duration.getAsUnrestrictedDouble());
EXPECT_FALSE(duration.isString());
@@ -267,9 +267,9 @@ TEST_F(AnimationAnimationV8Test, SpecifiedDurationGetter)
RefPtrWillBeRawPtr<Animation> animationNoDuration = createAnimation(element.get(), jsKeyframes, timingInputDictionaryNoDuration, exceptionState);
RefPtrWillBeRawPtr<AnimationNodeTiming> specifiedNoDuration = animationNoDuration->timing();
- DoubleOrString duration2;
+ UnrestrictedDoubleOrString duration2;
specifiedNoDuration->duration(duration2);
- EXPECT_FALSE(duration2.isDouble());
+ EXPECT_FALSE(duration2.isUnrestrictedDouble());
EXPECT_TRUE(duration2.isString());
EXPECT_EQ("auto", duration2.getAsString());
}
@@ -325,19 +325,19 @@ TEST_F(AnimationAnimationV8Test, SetSpecifiedDuration)
RefPtrWillBeRawPtr<AnimationNodeTiming> specified = animation->timing();
- DoubleOrString duration;
+ UnrestrictedDoubleOrString duration;
specified->duration(duration);
- EXPECT_FALSE(duration.isDouble());
+ EXPECT_FALSE(duration.isUnrestrictedDouble());
EXPECT_TRUE(duration.isString());
EXPECT_EQ("auto", duration.getAsString());
- DoubleOrString inDuration;
- inDuration.setDouble(2.5);
+ UnrestrictedDoubleOrString inDuration;
+ inDuration.setUnrestrictedDouble(2.5);
specified->setDuration(inDuration);
- DoubleOrString duration2;
+ UnrestrictedDoubleOrString duration2;
specified->duration(duration2);
- EXPECT_TRUE(duration2.isDouble());
- EXPECT_EQ(2.5, duration2.getAsDouble());
+ EXPECT_TRUE(duration2.isUnrestrictedDouble());
+ EXPECT_EQ(2.5, duration2.getAsUnrestrictedDouble());
EXPECT_FALSE(duration2.isString());
}
« no previous file with comments | « Source/core/animation/AnimationPlayerTest.cpp ('k') | Source/core/animation/AnimationTimeline.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698