mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
15 lines
397 B
HTML
15 lines
397 B
HTML
<script src="../testing.js"></script>
|
|
|
|
<script id=animation>
|
|
let a1 = document.createElement('div').animate(null, null);
|
|
testing.expectEqual('finished', a1.playState);
|
|
|
|
let cb = [];
|
|
a1.ready.then(() => { cb.push('ready') });
|
|
a1.finished.then((x) => {
|
|
cb.push('finished');
|
|
cb.push(x == a1);
|
|
});
|
|
testing.eventually(() => testing.expectEqual(['finished', true], cb));
|
|
</script>
|