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>
6 console
.log("Testing console.dir:");
7 console
.dir(undefined);
11 console
.dir({test
: 1, test1
:{apple
: "orange"}});
13 console
.dir(document
);
14 console
.dir(document
.body
);
16 console
.log("\nTesting console.dirxml:");
17 console
.dirxml(undefined);
21 console
.dirxml({test
: 1, test1
:{apple
: "orange"}});
22 console
.dirxml("Test");
23 console
.dirxml(document
);
24 console
.dirxml(document
.body
);
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);