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

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

Issue 2976613002: Move Web Animations API tests to subdirectory (Closed)
Patch Set: Created 3 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <meta charset=utf-8> 2 <meta charset=utf-8>
3 <title>Tests for discrete animation</title> 3 <title>Tests for discrete animation</title>
4 <link rel="help" href="https://w3c.github.io/web-animations/#play-state"> 4 <link rel="help" href="https://w3c.github.io/web-animations/#play-state">
5 <script src="../resources/testharness.js"></script> 5 <script src="../../resources/testharness.js"></script>
6 <script src="../resources/testharnessreport.js"></script> 6 <script src="../../resources/testharnessreport.js"></script>
7 <script src="../external/wpt/web-animations/testcommon.js"></script> 7 <script src="../../external/wpt/web-animations/testcommon.js"></script>
8 <body> 8 <body>
9 <script> 9 <script>
10 'use strict'; 10 'use strict';
11 function createIdleAnimation(t) { 11 function createIdleAnimation(t) {
12 var animation = createDiv(t).animate([], 100000); 12 var animation = createDiv(t).animate([], 100000);
13 animation.cancel(); 13 animation.cancel();
14 return animation; 14 return animation;
15 } 15 }
16 16
17 function createRunningAnimation(t) { 17 function createRunningAnimation(t) {
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 animation.ready.then(() => { 375 animation.ready.then(() => {
376 t.step(() => { 376 t.step(() => {
377 assert_equals(animation.playState, 'paused'); 377 assert_equals(animation.playState, 'paused');
378 assert_equals(animation.startTime, null); 378 assert_equals(animation.startTime, null);
379 assert_greater_than_equal(animation.currentTime, animationCurrentTime); 379 assert_greater_than_equal(animation.currentTime, animationCurrentTime);
380 }); 380 });
381 t.done(); 381 t.done();
382 }); 382 });
383 }, "PlayState is 'running' while pausing a running animation"); 383 }, "PlayState is 'running' while pausing a running animation");
384 </script> 384 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698