<body>
<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=24329">Bug 24329: REGRESSION: console.dirxml() Console API broken</a>.</p>
<p>To test, open the Inspector's Console and verify that all console messages have the correct output.</p>
</body>
<script>
console.log("Testing console.dir:");
console.dir(undefined);
console.dir(123);
console.dir(null);
console.dir({});
console.dir({test: 1, test1:{apple: "orange"}});
console.dir("Test");
console.dir(document);
console.dir(document.body);
console.log("\nTesting console.dirxml:");
console.dirxml(undefined);
console.dirxml(123);
console.dirxml(null);
console.dirxml({});
console.dirxml({test: 1, test1:{apple: "orange"}});
console.dirxml("Test");
console.dirxml(document);
console.dirxml(document.body);
console.log("\nTesting console.log's %o and %O formatters:");
console.log("%o %O", document.body, document.body);
console.log("%o %O", undefined, undefined);
console.log("%o %O", 123, 123);
console.log("%o %O", null, null);
</script>