migrate to htmlRunner

This commit is contained in:
Karl Seguin
2025-09-04 17:46:42 +08:00
parent 7fdc857326
commit 5af55f1d5d
11 changed files with 300 additions and 332 deletions

View File

@@ -0,0 +1,14 @@
<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>