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

Side by Side Diff: third_party/WebKit/LayoutTests/web-animations-api/timeline-set-current-time.html

Issue 2138303002: Update timeline-set-current-time to test setting animation timelines instead of document timelines (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename file to .txt instead of .html (oops) 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/web-animations-api/animationtimeline-consistent.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
4
5 <!-- This tests that animation timeline current time affects players correctly. -->
6
7 <div id='element'></div>
8
9 <script>
10 async_test(function(t) {
11 var player = element.animate([], 10);
12 var readyPromise = player.ready.then(function() {
13 t.step(function() {
14 assert_equals(player.currentTime, 0);
15 document.timeline.currentTime = player.startTime + 5;
16 assert_approx_equals(player.currentTime, 5, 0.1);
17 assert_equals(player.playState, "running");
18
19 document.timeline.currentTime = player.startTime + 15;
20 assert_approx_equals(player.currentTime, 10, 0.1);
21 assert_equals(player.playState, "finished");
22
23 document.timeline.currentTime = player.startTime;
24 assert_equals(player.currentTime, 0);
25 assert_equals(player.playState, "running");
26
27 document.timeline.currentTime = player.startTime + 5;
28 assert_approx_equals(player.currentTime, 5, 0.1);
29 assert_equals(player.playState, "running");
30 });
31 t.done();
32 });
33 }, 'Animation players are retriggered if timeline time changes');
34
35 </script>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/web-animations-api/animationtimeline-consistent.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698