Truly independent web browser
Tests: Stop relying on media element seeks clamping synchronously
Zaggy1024a7e00007cdca
diff --git a/Tests/LibWeb/Text/input/HTML/media-source-seek-past-seekable-ranges.html b/Tests/LibWeb/Text/input/HTML/media-source-seek-past-seekable-ranges.htmlindex c53f9a34e3a..6ddbd10a9a7 100644--- a/Tests/LibWeb/Text/input/HTML/media-source-seek-past-seekable-ranges.html+++ b/Tests/LibWeb/Text/input/HTML/media-source-seek-past-seekable-ranges.html@@ -28,12 +28,19 @@println(`buffered: ${rangesOf(video.buffered)}`);println(`seekable: ${rangesOf(video.seekable)}`);- // A seek past the end of every seekable range lands on the nearest point of one.- video.addEventListener("seeking", () => {+ function checkEndingCondition() {+ if (video.currentTime !== 42) {+ setTimeout(checkEndingCondition, 0);+ return;+ }println(`seeking to 50 lands at ${video.currentTime}`);done();- }, { once: true });+ }+video.currentTime = 50;+ video.addEventListener("seeking", () => {+ checkEndingCondition();+ }, { once: true });});});</script>