mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
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:
parent
72ca91ad1a
commit
7f8ba951cb
Notes:
github-actions[bot]
2025-01-03 10:48:17 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/7f8ba951cb5 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3089
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue