Chromium Code Reviews| Index: LayoutTests/web-animations-api/animationtimeline-consistent.html |
| diff --git a/LayoutTests/web-animations-api/animationtimeline-consistent.html b/LayoutTests/web-animations-api/animationtimeline-consistent.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..97fa4ef46f3b55bb79e0dfb4b01fb514db943fc3 |
| --- /dev/null |
| +++ b/LayoutTests/web-animations-api/animationtimeline-consistent.html |
| @@ -0,0 +1,19 @@ |
| +<!DOCTYPE html> |
| +<script src="../resources/testharness.js"></script> |
| +<script src="../resources/testharnessreport.js"></script> |
| +<script> |
| +var t = async_test('timeline.currentTime should be consistent despite 0 playback rate'); |
| + |
| +document.timeline.playbackRate = 0; |
| +document.timeline.currentTime = 0; |
| + |
| +requestAnimationFrame(function() { |
| + setTimeout(function() { |
| + t.step(function() { |
| + document.timeline.currentTime = 100; |
| + assert_approx_equals(document.timeline.currentTime, 100, 0.1); |
|
dstockwell
2015/01/14 12:55:40
this was coming out ~75 for me before this change
|
| + }); |
| + t.done(); |
| + }); |
| +}); |
| +</script> |