ladybird icon indicating copy to clipboard operation
ladybird copied to clipboard

Tests: Don't display imported WPT test output if browser is headless

Open tcl3 opened this issue 2 months ago • 0 comments

This PR adds an internals.headless attribute that returns true if the browser is running headlessly and uses it to determine whether imported WPT test output should be shown.

Previously, imported WPT tests didn't display any output if the internals object was exposed. This change adds the condition that the browser must also be running headlessly for test output to not be displayed.

This can be useful when debugging imported WPT tests in cases where the internals object needs to be exposed.

tcl3 avatar Dec 09 '24 22:12 tcl3