blob: bc042b84bf19c7c735bee1208744105275ff23c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
<html>
<head>
<script src="../../http/tests/inspector/inspector-test.js"></script>
<script src="../../http/tests/inspector/console-test.js"></script>
<script>
function logToConsole()
{
var fragment = document.createDocumentFragment();
fragment.appendChild(document.createElement("p"));
console.dirxml(document);
console.dirxml(fragment);
console.dirxml(fragment.firstChild);
console.log([fragment.firstChild]);
console.dirxml([document, fragment, document.createElement("span")]);
}
function test()
{
InspectorTest.evaluateInPage("logToConsole()");
InspectorTest.runAfterPendingDispatches(callback);
function callback()
{
InspectorTest.dumpConsoleMessages();
InspectorTest.completeTest();
}
}
</script>
</head>
<body onload="runTest()">
<p>
Tests that console logging dumps proper messages.
</p>
</body>
</html>
|