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

Unified Diff: third_party/WebKit/LayoutTests/web-animations-api/animation-playbackRate.html

Issue 2137403002: Rewrite animationtimeline-consistent into animation-playbackRate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo Created 4 years, 5 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 | third_party/WebKit/LayoutTests/web-animations-api/animationtimeline-consistent.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/web-animations-api/animation-playbackRate.html
diff --git a/third_party/WebKit/LayoutTests/web-animations-api/animation-playbackRate.html b/third_party/WebKit/LayoutTests/web-animations-api/animation-playbackRate.html
new file mode 100644
index 0000000000000000000000000000000000000000..438831d17355aa0c7eb4602f4c6cd20b09a473ca
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/web-animations-api/animation-playbackRate.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<meta charset=utf-8>
+<title>Animation.currentTime doesn't update if playbackRate is 0</title>
+<link rel="help" href="http://w3c.github.io/web-animations/#the-current-time-of-an-animation">
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script src="../imported/wpt/web-animations/testcommon.js"></script>
+
+<div id="div"></div>
+
+<script>
+
+promise_test(function(t) {
+ var animation = div.animate(null, 100 * MS_PER_SEC);
+ animation.playbackRate = 0;
+
+ return animation.ready.then(function() {
+ return waitForAnimationFrames(1);
+ }).then(function() {
+ assert_times_equal(animation.currentTime, 0);
+ });
+}, 'animation.currentTime should be constant if there is a 0 playback rate');
+
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/web-animations-api/animationtimeline-consistent.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698