Chromium Code Reviews| 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..a6b302ccec288e5a476e2847c9aa1263bd01528b |
| --- /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_approx_equals(animation.currentTime, 0, 0.001); |
|
suzyh_UTC10 (ex-contributor)
2016/07/12 05:15:45
Use assert_times_equal?
meade_UTC10
2016/07/12 05:57:33
Done.
|
| + }); |
| +}, 'animation.currentTime should be constant if there is a 0 playback rate'); |
| + |
| +</script> |