| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <meta charset=utf-8> | 2 <meta charset=utf-8> |
| 3 <title>Animation.finish()</title> | 3 <title>Animation.finish()</title> |
| 4 <link rel="help" href="https://w3c.github.io/web-animations/#dom-animation-finis
h"> | 4 <link rel="help" href="https://w3c.github.io/web-animations/#dom-animation-finis
h"> |
| 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 <link rel="stylesheet" href="../../../../resources/testharness.css"> | 8 <link rel="stylesheet" href="../../../../resources/testharness.css"> |
| 9 <body> | 9 <body> |
| 10 <div id="log"></div> | 10 <div id="log"></div> |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 return animation.ready.then(function() { | 201 return animation.ready.then(function() { |
| 202 animation.finish(); | 202 animation.finish(); |
| 203 }).then(function() { | 203 }).then(function() { |
| 204 assert_true(resolvedFinished, | 204 assert_true(resolvedFinished, |
| 205 'Animation.finished should be resolved soon after ' + | 205 'Animation.finished should be resolved soon after ' + |
| 206 'Animation.finish()'); | 206 'Animation.finish()'); |
| 207 }); | 207 }); |
| 208 }, 'Test finish() resolves finished promise synchronously'); | 208 }, 'Test finish() resolves finished promise synchronously'); |
| 209 </script> | 209 </script> |
| 210 </body> | 210 </body> |
| OLD | NEW |