From 7f8ba951cb5ce50225259c7dcdb634163dc73ef5 Mon Sep 17 00:00:00 2001 From: Tim Ledbetter Date: Tue, 31 Dec 2024 23:04:42 +0000 Subject: [PATCH] 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. --- Tests/LibWeb/Text/input/wpt-import/resources/testharness.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/LibWeb/Text/input/wpt-import/resources/testharness.js b/Tests/LibWeb/Text/input/wpt-import/resources/testharness.js index 9d2d1f0a69a..401f7a6c8ba 100644 --- a/Tests/LibWeb/Text/input/wpt-import/resources/testharness.js +++ b/Tests/LibWeb/Text/input/wpt-import/resources/testharness.js @@ -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); }