1 <body> 2 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=24329">Bug 24329: REGRESSION: console.dirxml() Console API broken</a>.</p> 3 <p>To test, open the Inspector's Console and verify that all console messages have the correct output.</p> 4 </body> 5 <script> 6 console.log("Testing console.dir:"); 7 console.dir(undefined); 8 console.dir(123); 9 console.dir(null); 10 console.dir({}); 11 console.dir({test: 1, test1:{apple: "orange"}}); 12 console.dir("Test"); 13 console.dir(document); 14 console.dir(document.body); 15 16 console.log("\nTesting console.dirxml:"); 17 console.dirxml(undefined); 18 console.dirxml(123); 19 console.dirxml(null); 20 console.dirxml({}); 21 console.dirxml({test: 1, test1:{apple: "orange"}}); 22 console.dirxml("Test"); 23 console.dirxml(document); 24 console.dirxml(document.body); 25 26 console.log("\nTesting console.log's %o and %O formatters:"); 27 console.log("%o %O", document.body, document.body); 28 console.log("%o %O", undefined, undefined); 29 console.log("%o %O", 123, 123); 30 console.log("%o %O", null, null); 31 </script> 32