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

Unified Diff: Source/core/animation/AnimationPlayerTest.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/AnimationPlayer.idl ('k') | Source/core/animation/AnimationTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/AnimationPlayerTest.cpp
diff --git a/Source/core/animation/AnimationPlayerTest.cpp b/Source/core/animation/AnimationPlayerTest.cpp
index 3cc634a0b12ba15402f81ed09a98e209746610d5..0c1d4dca1b22d403b6f7e3f2e71f4ce52e4b2cd1 100644
--- a/Source/core/animation/AnimationPlayerTest.cpp
+++ b/Source/core/animation/AnimationPlayerTest.cpp
@@ -214,18 +214,6 @@ TEST_F(AnimationAnimationPlayerTest, SetCurrentTimeMax)
EXPECT_EQ(std::numeric_limits<double>::max(), player->currentTimeInternal());
}
-TEST_F(AnimationAnimationPlayerTest, SetCurrentTimeUnrestrictedDouble)
-{
- simulateFrame(10);
- player->setCurrentTime(nullValue());
- EXPECT_EQ(10, player->currentTimeInternal());
- player->setCurrentTime(std::numeric_limits<double>::infinity());
- EXPECT_EQ(10, player->currentTimeInternal());
- player->setCurrentTime(-std::numeric_limits<double>::infinity());
- EXPECT_EQ(10, player->currentTimeInternal());
-}
-
-
TEST_F(AnimationAnimationPlayerTest, SetCurrentTimeSetsStartTime)
{
EXPECT_EQ(0, player->startTime());
« no previous file with comments | « Source/core/animation/AnimationPlayer.idl ('k') | Source/core/animation/AnimationTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698