mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 12:20:00 +01: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
|
|
@ -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…
Reference in New Issue
Block a user