3 var output = document.getElementById("output");
4 var div = document.createElement("div");
5 div.textContent = text;
6 output.appendChild(div);
9 function dumpConsoleMessageArgumentCounts()
11 var consoleMessageArgumentCounts = window.internals.consoleMessageArgumentCounts(document);
12 if (consoleMessageArgumentCounts.length === 3)
13 print("PASSED: found argument counts for 3 messages");
15 print("FAILED: unexpected number of messages: " + consoleMessageArgumentCounts.length);
17 for (var i = 0; i < consoleMessageArgumentCounts.length; i++) {
18 var count = consoleMessageArgumentCounts[i];
20 print("PASSED: message #" + i + " has no arguments.");
22 print("FAILED: message #" + i + " has " + count + " arguments.");