OLD | NEW |
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 Loading... |
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> |
OLD | NEW |