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

Unified Diff: LayoutTests/fast/events/constructors/animation-event-constructor.html

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 | « no previous file | LayoutTests/fast/events/constructors/animation-event-constructor-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/events/constructors/animation-event-constructor.html
diff --git a/LayoutTests/fast/events/constructors/animation-event-constructor.html b/LayoutTests/fast/events/constructors/animation-event-constructor.html
index 5d75e6c6aec38ef682c6696a5ca6c588e7bb0139..30f8abb21953fed918bb6952adc7864bd1ec0f53 100644
--- a/LayoutTests/fast/events/constructors/animation-event-constructor.html
+++ b/LayoutTests/fast/events/constructors/animation-event-constructor.html
@@ -46,9 +46,9 @@ shouldBe("new AnimationEvent('eventType', { elapsedTime: 0 }).elapsedTime", "0")
shouldBe("new AnimationEvent('eventType', { elapsedTime: 123.45 }).elapsedTime", "123.45");
shouldBe("new AnimationEvent('eventType', { elapsedTime: -123.45 }).elapsedTime", "-123.45");
shouldBe("new AnimationEvent('eventType', { elapsedTime: 18446744073709551615 }).elapsedTime", "18446744073709551615");
-shouldBe("new AnimationEvent('eventType', { elapsedTime: NaN }).elapsedTime", "NaN");
-shouldBe("new AnimationEvent('eventType', { elapsedTime: Infinity }).elapsedTime", "Infinity");
-shouldBe("new AnimationEvent('eventType', { elapsedTime: -Infinity }).elapsedTime", "-Infinity");
+shouldThrow("new AnimationEvent('eventType', { elapsedTime: NaN }).elapsedTime");
+shouldThrow("new AnimationEvent('eventType', { elapsedTime: Infinity }).elapsedTime");
+shouldThrow("new AnimationEvent('eventType', { elapsedTime: -Infinity }).elapsedTime");
// Non-numeric values.
shouldBe("new AnimationEvent('eventType', { elapsedTime: undefined }).elapsedTime", "0");
@@ -56,11 +56,11 @@ shouldBe("new AnimationEvent('eventType', { elapsedTime: null }).elapsedTime", "
shouldBe("new AnimationEvent('eventType', { elapsedTime: false }).elapsedTime", "0");
shouldBe("new AnimationEvent('eventType', { elapsedTime: true }).elapsedTime", "1");
shouldBe("new AnimationEvent('eventType', { elapsedTime: '' }).elapsedTime", "0");
-shouldBe("new AnimationEvent('eventType', { elapsedTime: 'doremi' }).elapsedTime", "NaN");
+shouldThrow("new AnimationEvent('eventType', { elapsedTime: 'doremi' }).elapsedTime");
shouldBe("new AnimationEvent('eventType', { elapsedTime: [] }).elapsedTime", "0");
shouldBe("new AnimationEvent('eventType', { elapsedTime: [123.45] }).elapsedTime", "123.45");
-shouldBe("new AnimationEvent('eventType', { elapsedTime: [123.45, 678.90] }).elapsedTime", "NaN");
-shouldBe("new AnimationEvent('eventType', { elapsedTime: {doremi: 123.45} }).elapsedTime", "NaN");
+shouldThrow("new AnimationEvent('eventType', { elapsedTime: [123.45, 678.90] }).elapsedTime");
+shouldThrow("new AnimationEvent('eventType', { elapsedTime: {doremi: 123.45} }).elapsedTime");
shouldBe("new AnimationEvent('eventType', { elapsedTime: {valueOf: function () { return 123.45 } } }).elapsedTime", "123.45");
// All initializers are passed.
« no previous file with comments | « no previous file | LayoutTests/fast/events/constructors/animation-event-constructor-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698