Files
ladybird/Tests/LibWeb/Text/data/video-gc-frame.html
Timothy Flynn 512cea5a87 LibWeb: Bring back the test video for LibWeb tests
The video was accidentally removed in commit d5ba665f89.

This adds the video back to the LibWeb/Text/data folder, and validates
that the video loads in the test that depends on it loading.
2024-10-10 17:52:58 -04:00

11 lines
343 B
HTML

<video id="video" autoplay src="../../Assets/test-webm.webm"></video>
<script type="text/javascript">
video.addEventListener("loadedmetadata", () => {
parent.postMessage("video loaded", "*");
});
video.addEventListener("error", e => {
parent.postMessage(`error: ${e.target.error.message}`, "*");
});
</script>