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

Side by Side Diff: third_party/WebKit/LayoutTests/web-animations-api/player-play-with-negative-current-time.html

Issue 2144463002: Animations: Remove player-play-with-negative-current-time.html (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 <div id="target"></div>
5 <script>
6 test(function() {
7 var keyframes = [
8 {left: '0px'},
9 {left: '100px'}
10 ];
11 var timing = {
12 duration: 1,
13 delay: -100,
14 };
15 var player = target.animate(keyframes, timing);
16 document.timeline.currentTime = 0;
17 var oldStartTime = player.startTime;
18 player.startTime += 2000;
19 assert_equals(player.startTime, oldStartTime + 2000);
20 player.play();
21 assert_equals(player.startTime, null);
22 assert_equals(player.currentTime, 0);
23 }, 'Play() called with a large negative delay');
24 </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