From cc1ea02949c48975d3ef24f5f0cd942b54fc0c94 Mon Sep 17 00:00:00 2001 From: Tim Ledbetter Date: Mon, 2 Dec 2024 18:47:56 +0000 Subject: [PATCH] LibWeb: Disable test output for imported WPT tests This reduces the runtime of all imported WPT tests from 8.2 seconds to 4.5 seconds on my local machine. --- Tests/LibWeb/Text/input/wpt-import/resources/testharness.js | 3 ++- 1 file changed, 2 insertions(+), 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 d75e0474394..9c536f88801 100644 --- a/Tests/LibWeb/Text/input/wpt-import/resources/testharness.js +++ b/Tests/LibWeb/Text/input/wpt-import/resources/testharness.js @@ -8,7 +8,8 @@ { // default timeout is 10 seconds, test can override if needed var settings = { - output:true, + // Assume we are running tests if the internals object is exposed. + output:!window.hasOwnProperty("internals"), harness_timeout:{ "normal":150000, // NOTE: Overridden for Ladybird due to slow GCC CI "long":300000 // NOTE: Overridden for Ladybird due to slow GCC CI