mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-25 09:04:53 +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:
committed by
Andreas Kling
parent
bbdf766fb0
commit
79fa892ca1
@@ -1,5 +1,11 @@
|
||||
var __outputElement = null;
|
||||
|
||||
if (globalThis.internals === undefined) {
|
||||
internals = {
|
||||
signalTextTestIsDone: function () {},
|
||||
};
|
||||
}
|
||||
|
||||
function println(s) {
|
||||
__outputElement.appendChild(document.createTextNode(s + "\n"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user