Skip to content

Truly independent web browser

Tests/LibWeb: Load the final-progress media test with preload=auto

sideshowbarker77de793d2f9a
diff --git a/Tests/LibWeb/Text/input/media-final-progress-after-buffered-scan.html b/Tests/LibWeb/Text/input/media-final-progress-after-buffered-scan.html
index 099b6157fd0..6e85d7db610 100644
--- a/Tests/LibWeb/Text/input/media-final-progress-after-buffered-scan.html
+++ b/Tests/LibWeb/Text/input/media-final-progress-after-buffered-scan.html
@@ -3,6 +3,9 @@
<script>
asyncTest(async done => {
const video = document.createElement("video");
+ // The Metadata preload state may suspend the download at HAVE_CURRENT_DATA, before the scan reaches the end, which
+ // would fire an extra suspend event. This test is about the suspend that follows the final progress event.
+ video.preload = "auto";
document.body.append(video);
for (let load = 0; load < 2; ++load) {
let progressEnd = -1;