Tests: Don't attempt to set test timeout if internals is not exposed

Previously, test output would not be displayed for tests setting a long
timeout, if the internals object was not exposed.
This commit is contained in:
Tim Ledbetter 2024-12-31 23:04:42 +00:00 committed by Andreas Kling
parent 72ca91ad1a
commit 7f8ba951cb
Notes: github-actions[bot] 2025-01-03 10:48:17 +00:00

View file

@ -559,7 +559,7 @@
// Tell the ladybird test runner what our preferred timeout is
{
let timeout = test_environment.test_timeout();
if (timeout)
if (timeout && window.internals)
window.internals.setTestTimeout(timeout);
}