mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
22 lines
475 B
HTML
22 lines
475 B
HTML
<!DOCTYPE html>
|
|
<video autoplay id="video" src="../../../Assets/test-webm.webm" muted></video>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
asyncTest(done => {
|
|
setTimeout(() => {
|
|
println("FAIL: timeout waiting for autoplay");
|
|
done();
|
|
}, 10_000);
|
|
|
|
function autoplayed() {
|
|
println("PASS: autoplay working");
|
|
done();
|
|
}
|
|
if (video.paused) {
|
|
video.onplaying = autoplayed;
|
|
} else {
|
|
autoplayed();
|
|
}
|
|
});
|
|
</script>
|