Index: third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/Animation/reverse.html |
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/Animation/reverse.html b/third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/Animation/reverse.html |
index fd0926c2e35574db852f9fdea213f8c919a44a82..5ee27131c2744f1f0b7cb1512a16227b06f525e0 100644 |
--- a/third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/Animation/reverse.html |
+++ b/third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/Animation/reverse.html |
@@ -146,5 +146,14 @@ test(function(t) { |
t.done(); |
}, 'reverse() when playbackRate == 0'); |
+test(function(t) { |
+ var div = createDiv(t); |
+ var animation = |
+ new Animation(new KeyframeEffect(div, null, 100 * MS_PER_SEC), null); |
+ |
+ assert_throws('InvalidStateError', function() { animation.reverse(); }); |
+}, 'Reversing an animation without an active timeline throws an ' + |
+ 'InvalidStateError'); |
+ |
</script> |
</body> |