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> |