MCPcopy Create free account
hub / github.com/HtmlUnit/htmlunit / log

Function log

src/test/resources/logWriter.js:16–29  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

14 window.attachEvent('onload', addLogToBody);
15}
16function log(text)
17{
18 var log = document.htmlUnitLog;
19 if (log == null)
20 {
21 log = document.createElement('ol');
22 log.id = "log";
23 document.htmlUnitLog = log;
24 }
25 addLogToBody(log);
26 var item = document.createElement("li");
27 item.appendChild(document.createTextNode(String(text)))
28 log.appendChild(item);
29}

Callers

nothing calls this directly

Calls 4

addLogToBodyFunction · 0.85
createElementMethod · 0.65
appendChildMethod · 0.45
createTextNodeMethod · 0.45

Tested by

no test coverage detected