diff options
Diffstat (limited to 'ManualTests/inspector/console-dir.html')
-rw-r--r-- | ManualTests/inspector/console-dir.html | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/ManualTests/inspector/console-dir.html b/ManualTests/inspector/console-dir.html new file mode 100644 index 000000000..90f389d03 --- /dev/null +++ b/ManualTests/inspector/console-dir.html @@ -0,0 +1,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> |