mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibWeb: Convert some sync tests to be async
The events tested here are decidedly async. We also can't really write
sync tests of the form "test(async () => {})". Nothing will await the
async callback.
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<script src="../include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
asyncTest(done => {
|
||||
const video = document.createElement("video");
|
||||
video.textTracks.addEventListener("addtrack", () => {
|
||||
println(`addtrack event called`);
|
||||
done();
|
||||
});
|
||||
|
||||
const track = video.addTextTrack("subtitles", "demo label", "en-GB");
|
||||
|
||||
Reference in New Issue
Block a user