| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <meta charset=utf-8> | 2 <meta charset=utf-8> |
| 3 <title>Setting the start time tests</title> | 3 <title>Setting the start time tests</title> |
| 4 <link rel="help" href="https://w3c.github.io/web-animations/#set-the-animation-s
tart-time"> | 4 <link rel="help" href="https://w3c.github.io/web-animations/#set-the-animation-s
tart-time"> |
| 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="../../testcommon.js"></script> | 7 <script src="../../testcommon.js"></script> |
| 8 <body> | 8 <body> |
| 9 <div id="log"></div> | 9 <div id="log"></div> |
| 10 <script> | 10 <script> |
| 11 'use strict'; | 11 'use strict'; |
| 12 | 12 |
| 13 test(function(t) | 13 test(function(t) |
| 14 { | 14 { |
| 15 // It should only be possible to set *either* the start time or the current | 15 // It should only be possible to set *either* the start time or the current |
| 16 // time for an animation that does not have an active timeline. | 16 // time for an animation that does not have an active timeline. |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 var finishedCurrentTime = animation.currentTime; | 196 var finishedCurrentTime = animation.currentTime; |
| 197 return waitForAnimationFrames(1).then(function() { | 197 return waitForAnimationFrames(1).then(function() { |
| 198 assert_equals(animation.currentTime, finishedCurrentTime, | 198 assert_equals(animation.currentTime, finishedCurrentTime, |
| 199 'Current time does not change after seeking past the effect' | 199 'Current time does not change after seeking past the effect' |
| 200 + ' end time by setting the current time'); | 200 + ' end time by setting the current time'); |
| 201 }); | 201 }); |
| 202 }, 'Setting the start time updates the finished state'); | 202 }, 'Setting the start time updates the finished state'); |
| 203 | 203 |
| 204 </script> | 204 </script> |
| 205 </body> | 205 </body> |
| OLD | NEW |