Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / console / console-format-table.html
blob8fc891a6ca07fa5bcb4c7536ed91be777d3a5e59
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/console-test.js"></script>
5 <script>
7 function logToConsole()
9 console.table();
10 console.table(null);
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"]);
46 function onload()
48 logToConsole();
49 runTest();
52 function test()
54 InspectorTest.evaluateInPage("logToConsole()", callback);
56 function callback()
58 InspectorTest.dumpConsoleMessages();
59 InspectorTest.completeTest();
62 </script>
63 </head>
65 <body onload="onload()">
66 <p>
67 Tests console.table.
68 </p>
69 </body>
70 </html>