undefined reference to 'JSC::B3::BasicBlock::fallThrough() const
[WebKit-https.git] / LayoutTests / http / wpt / web-animations / timing-model / animations / finishing-an-animation.html
1 <!DOCTYPE html>
2 <meta charset=utf-8>
3 <title>Finishing an animation</title>
4 <link rel="help"
5   href="https://w3c.github.io/web-animations/#finishing-an-animation-section">
6 <script src="/resources/testharness.js"></script>
7 <script src="/resources/testharnessreport.js"></script>
8 <script src="../../testcommon.js"></script>
9 <body>
10 <div id="log"></div>
11 <script>
12 'use strict';
13
14 promise_test(function(t) {
15   const animation = createDiv(t).animate(null, 100 * MS_PER_SEC);
16   const promise = animation.ready;
17   let readyResolved = false;
18
19   animation.finish();
20   animation.ready.then(() => { readyResolved = true; });
21
22   return animation.finished.then(p => {
23     assert_equals(p, animation);
24     assert_equals(animation.ready, promise);
25     assert_true(readyResolved);
26   });
27 }, 'A pending ready promise should be resolved and not replaced when the'
28    + ' animation is finished');
29
30 </script>
31 </body>