| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <meta charset=utf-8> | 2 <meta charset=utf-8> |
| 3 <title>Animation.startTime tests</title> | 3 <title>Animation.startTime tests</title> |
| 4 <link rel="help" | 4 <link rel="help" |
| 5 href="https://w3c.github.io/web-animations/#dom-animation-starttime"> | 5 href="https://w3c.github.io/web-animations/#dom-animation-starttime"> |
| 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 <script src="../../testcommon.js"></script> | 8 <script src="../../testcommon.js"></script> |
| 9 <link rel="stylesheet" href="../../../../../resources/testharness.css"> | 9 <link rel="stylesheet" href="/resources/testharness.css"> |
| 10 <body> | 10 <body> |
| 11 <div id="log"></div> | 11 <div id="log"></div> |
| 12 <script> | 12 <script> |
| 13 'use strict'; | 13 'use strict'; |
| 14 | 14 |
| 15 test(function(t) { | 15 test(function(t) { |
| 16 var animation = new Animation(new KeyframeEffect(createDiv(t), null), | 16 var animation = new Animation(new KeyframeEffect(createDiv(t), null), |
| 17 document.timeline); | 17 document.timeline); |
| 18 assert_equals(animation.startTime, null, 'startTime is unresolved'); | 18 assert_equals(animation.startTime, null, 'startTime is unresolved'); |
| 19 }, 'startTime of a newly created (idle) animation is unresolved'); | 19 }, 'startTime of a newly created (idle) animation is unresolved'); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 promise_test(function(t) { | 41 promise_test(function(t) { |
| 42 var animation = createDiv(t).animate(null, 100 * MS_PER_SEC); | 42 var animation = createDiv(t).animate(null, 100 * MS_PER_SEC); |
| 43 return animation.ready.then(function() { | 43 return animation.ready.then(function() { |
| 44 assert_greater_than(animation.startTime, 0, 'startTime when running'); | 44 assert_greater_than(animation.startTime, 0, 'startTime when running'); |
| 45 }); | 45 }); |
| 46 }, 'startTime is resolved when running'); | 46 }, 'startTime is resolved when running'); |
| 47 | 47 |
| 48 </script> | 48 </script> |
| 49 </body> | 49 </body> |
| OLD | NEW |