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

Unified Diff: LayoutTests/web-animations-api/timed-item.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 | « LayoutTests/web-animations-api/player.html ('k') | LayoutTests/web-animations-api/timed-item-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/web-animations-api/timed-item.html
diff --git a/LayoutTests/web-animations-api/timed-item.html b/LayoutTests/web-animations-api/timed-item.html
index 13dd9f0dba9e97b222ce94663488807e6b0dda28..3e4164393bf464f1cabf6382f7ba1720add81252 100644
--- a/LayoutTests/web-animations-api/timed-item.html
+++ b/LayoutTests/web-animations-api/timed-item.html
@@ -63,4 +63,12 @@ test(function() {
assert_equals(animation.computedTiming.duration, 0);
}, 'TimedItem duration is calculated when no duration is specified');
+test(function() {
+ var timing = new Animation(element, keyframes).timing;
+ for (var attr of ['delay', 'endDelay', 'iterationStart', 'playbackRate']) {
+ assert_throws(new TypeError, function() { timing[attr] = NaN; }, attr);
+ assert_throws(new TypeError, function() { timing[attr] = Infinity; }, attr);
+ }
+}, 'Restricted double attributes on the Timing interface throws for non-finite values.');
+
</script>
« no previous file with comments | « LayoutTests/web-animations-api/player.html ('k') | LayoutTests/web-animations-api/timed-item-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698