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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/animation-state-changes-negative-playback-rate.html

Issue 2910883002: Clean up duplicate tests in web-animations-api (Closed)
Patch Set: Rebase and remove one more reference to deleted test Created 3 years, 6 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <meta charset=utf-8> 2 <meta charset=utf-8>
3 <title>Test play state changes for animations with a negative playback rate</tit le> 3 <title>Test play state changes for animations with a negative playback rate</tit le>
4 <link rel="help" href="http://w3c.github.io/web-animations/#play-state"> 4 <link rel="help" href="http://w3c.github.io/web-animations/#play-state">
5 <script src="../external/wpt/web-animations/testcommon.js"></script> 5 <script src="../external/wpt/web-animations/testcommon.js"></script>
6 <script src="../resources/testharness.js"></script> 6 <script src="../resources/testharness.js"></script>
7 <script src="../resources/testharnessreport.js"></script> 7 <script src="../resources/testharnessreport.js"></script>
8 8
9 <script> 9 <script>
10 var duration = 100000; 10 var duration = 100000;
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 }, "Calling reverse() on a finished animation"); 349 }, "Calling reverse() on a finished animation");
350 350
351 test(function() { 351 test(function() {
352 var animation = finishedAnimation(); 352 var animation = finishedAnimation();
353 animation.currentTime = 1000; 353 animation.currentTime = 1000;
354 assert_times_equal(animation.startTime, document.timeline.currentTime - (anima tion.playbackRate * animation.currentTime)); 354 assert_times_equal(animation.startTime, document.timeline.currentTime - (anima tion.playbackRate * animation.currentTime));
355 assert_equals(animation.currentTime, 1000); 355 assert_equals(animation.currentTime, 1000);
356 assert_equals(animation.playState, 'running'); 356 assert_equals(animation.playState, 'running');
357 }, "Setting currentTime on a finished animation"); 357 }, "Setting currentTime on a finished animation");
358 </script> 358 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698