Skip to content

Truly independent web browser

Tests/LibWeb: Ignore incidental requests in a posted-messages trace

sideshowbarker574710b748c9
diff --git a/Tests/LibWeb/Text/input/HTML/rendering-opportunity-allows-posted-messages.html b/Tests/LibWeb/Text/input/HTML/rendering-opportunity-allows-posted-messages.html
index 7829c52c7c7..b505d517e63 100644
--- a/Tests/LibWeb/Text/input/HTML/rendering-opportunity-allows-posted-messages.html
+++ b/Tests/LibWeb/Text/input/HTML/rendering-opportunity-allows-posted-messages.html
@@ -11,8 +11,10 @@
function printRenderingSchedule(title, trace) {
println(title);
+ // The test's own requests come before the trace begins, so any request in it is incidental: The rendering work
+ // the opportunity starts can request a frame of its own before the trace is taken.
for (const line of trace.split("\n")) {
- if (/^(request|opportunity|update$)/.test(line))
+ if (/^(opportunity|update$)/.test(line))
println(` ${line}`);
}
}