mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:37:34 +00:00
Tests: Add stub for the internals object when not running in test mode
This allows developers to open LibWeb test html files in Ladybird or in other browsers to observe their behavior without the internals object.
This commit is contained in:
parent
bbdf766fb0
commit
79fa892ca1
1 changed files with 6 additions and 0 deletions
|
@ -1,5 +1,11 @@
|
|||
var __outputElement = null;
|
||||
|
||||
if (globalThis.internals === undefined) {
|
||||
internals = {
|
||||
signalTextTestIsDone: function () {},
|
||||
};
|
||||
}
|
||||
|
||||
function println(s) {
|
||||
__outputElement.appendChild(document.createTextNode(s + "\n"));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue