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

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

Issue 2145473002: Delete obsolete test for AnimationTimeline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « no previous file | 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 and playback rate works cor rectly. -->
6
7 <script>
8 test(function() {
9 document.timeline.currentTime = 1000;
10 assert_approx_equals(document.timeline.currentTime, 1000, 0.1);
11 assert_equals(document.timeline.playbackRate, 1);
12
13 document.timeline.playbackRate = 1;
14 document.timeline.currentTime = 2000;
15 assert_approx_equals(document.timeline.currentTime, 2000, 0.1);
16 assert_equals(document.timeline.playbackRate, 1);
17
18 document.timeline.playbackRate = 0.5;
19 assert_approx_equals(document.timeline.currentTime, 2000, 0.1);
20 document.timeline.currentTime = 3000;
21 assert_approx_equals(document.timeline.currentTime, 3000, 0.1);
22 assert_equals(document.timeline.playbackRate, 0.5);
23 }, 'Current time is set correctly on the animation timeline.');
24
25 </script>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698