From d3c900363846a803c12bf0497016e2afdbbf1b39 Mon Sep 17 00:00:00 2001 From: Alan Cutter Date: Tue, 19 Jul 2016 11:50:54 +1000 Subject: [PATCH] Upstream animation-playbackRate.html from Blink Import https://chromium.googlesource.com/chromium/src/+/13e84dff8a9a31764ed276346d78d347458ba125/third_party/WebKit/LayoutTests/web-animations-api/animation-playbackRate.html --- .../timing-model/animations/current-time.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/web-animations/timing-model/animations/current-time.html b/web-animations/timing-model/animations/current-time.html index efc7ba78b968d5..539c22ce7ffe56 100644 --- a/web-animations/timing-model/animations/current-time.html +++ b/web-animations/timing-model/animations/current-time.html @@ -61,5 +61,17 @@ 'Animation has a unresolved start time'); }, 'The current time is calculated from the timeline time, start time and ' + 'playback rate'); + +promise_test(function(t) { + var animation = createDiv(t).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); + }); +}, 'The current time does not progress if playback rate is 0'); +