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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/Animation/reverse.html

Issue 2086283003: Update web-platform-tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'master' into wpt_import Created 4 years, 6 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
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>

Powered by Google App Engine
This is Rietveld 408576698