Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / web-animations-api / animationtimeline-consistent.html
blob97fa4ef46f3b55bb79e0dfb4b01fb514db943fc3
1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
4 <script>
5 var t = async_test('timeline.currentTime should be consistent despite 0 playback rate');
7 document.timeline.playbackRate = 0;
8 document.timeline.currentTime = 0;
10 requestAnimationFrame(function() {
11 setTimeout(function() {
12 t.step(function() {
13 document.timeline.currentTime = 100;
14 assert_approx_equals(document.timeline.currentTime, 100, 0.1);
15 });
16 t.done();
17 });
18 });
19 </script>