console-dirxml.html 575 Bytes
Newer Older
1
2
<html>
<head>
3
<script src="../http/tests/inspector/inspector-test.js"></script>
4
<script src="../http/tests/inspector/console-tests.js"></script>
5
6
7
8
<script>

function doit()
{
9
10
11
    var fragment = document.createDocumentFragment();
    fragment.appendChild(document.createElement("p"));

12
    console.dirxml(document);
13
14
15
    console.dirxml(fragment);
    console.dirxml(fragment.firstChild);
    console.log([fragment.firstChild]);
16

17
    dumpConsoleMessages();
18
19
20
21
22
23
24
25
26
27
28
29
}

</script>
</head>

<body onload="onload()">
<p>
Tests that console logging dumps proper messages.
</p>

</body>
</html>