blob: 90f389d03e648f31aeb8b3edc9bae858a293a577 (
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
|
<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>
|