3 <script src=
"../../http/tests/inspector/inspector-test.js"></script>
4 <script src=
"../../http/tests/inspector/console-test.js"></script>
7 function logToConsole()
12 console
.log("Array of arrays");
13 console
.table([[1,2,3], [4,5,6]]);
15 console
.log("Large array of arrays");
16 console
.table([[1,2,3], [4,5,6], [1,2,3], [4,5,6], [1,2,3], [4,5,6], [1,2,3], [4,5,6]]);
18 console
.log("Array or array and object");
19 console
.table([[1,2,3], {a
:1, b
:2, c
:3}]);
21 console
.log("Object table");
22 console
.table({"foo": {a
:1, b
:2}, "bar": {a
:3, b
:4}});
24 console
.log("Null as columns");
25 console
.table([[1,2,3], [4,5,6]], null);
27 console
.log("Digit as columns");
28 console
.table([[1,2,3], [4,5,6]], 0);
30 console
.log("String as columns");
31 console
.table([[1,2,3], [4,5,6]], "0");
33 console
.log("Random string as columns");
34 console
.table([[1,2,3], [4,5,6]], "Foo");
36 console
.log("Array of strings as columns");
37 console
.table([{a
:1, b
:2, c
:3}, {a
:"foo", b
:"bar"}], ["a", "b"]);
39 console
.log("Good and bad column names");
40 console
.table([{a
:1, b
:2, c
:3}, {a
:"foo"}], ["a", "b", "d"]);
42 console
.log("Missing column name");
43 console
.table([{a
:1, b
:2, c
:3}, {a
:"foo"}], ["d"]);
54 InspectorTest
.evaluateInPage("logToConsole()", callback
);
58 InspectorTest
.dumpConsoleMessages();
59 InspectorTest
.completeTest();
65 <body onload=
"onload()">