| OLD | NEW | 
|---|
| 1 <html> | 1 <html> | 
| 2 <head> | 2 <head> | 
| 3 <script src="../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../http/tests/inspector/inspector-test.js"></script> | 
| 4 <script src="../../http/tests/inspector/console-test.js"></script> | 4 <script src="../../http/tests/inspector/console-test.js"></script> | 
| 5 <script> | 5 <script> | 
| 6 | 6 | 
| 7 function logToConsole() | 7 function logToConsole() | 
| 8 { | 8 { | 
| 9     console.table(); | 9     console.table(); | 
| 10     console.table(null); | 10     console.table(null); | 
| (...skipping 23 matching lines...) Expand all  Loading... | 
| 34     console.table([[1,2,3], [4,5,6]], "Foo"); | 34     console.table([[1,2,3], [4,5,6]], "Foo"); | 
| 35 | 35 | 
| 36     console.log("Array of strings as columns"); | 36     console.log("Array of strings as columns"); | 
| 37     console.table([{a:1, b:2, c:3}, {a:"foo", b:"bar"}], ["a", "b"]); | 37     console.table([{a:1, b:2, c:3}, {a:"foo", b:"bar"}], ["a", "b"]); | 
| 38 | 38 | 
| 39     console.log("Good and bad column names"); | 39     console.log("Good and bad column names"); | 
| 40     console.table([{a:1, b:2, c:3}, {a:"foo"}], ["a", "b", "d"]); | 40     console.table([{a:1, b:2, c:3}, {a:"foo"}], ["a", "b", "d"]); | 
| 41 | 41 | 
| 42     console.log("Missing column name"); | 42     console.log("Missing column name"); | 
| 43     console.table([{a:1, b:2, c:3}, {a:"foo"}], ["d"]); | 43     console.table([{a:1, b:2, c:3}, {a:"foo"}], ["d"]); | 
|  | 44 | 
|  | 45     console.log("Shallow array"); | 
|  | 46     console.table([1, "foo", null]); | 
|  | 47 | 
|  | 48     console.log("Deep and shallow array"); | 
|  | 49     console.table([1, "foo", [2]]); | 
| 44 } | 50 } | 
| 45 | 51 | 
| 46 function onload() | 52 function onload() | 
| 47 { | 53 { | 
| 48     logToConsole(); | 54     logToConsole(); | 
| 49     runTest(); | 55     runTest(); | 
| 50 } | 56 } | 
| 51 | 57 | 
| 52 function test() | 58 function test() | 
| 53 { | 59 { | 
| 54     InspectorTest.evaluateInPage("logToConsole()", callback); | 60     InspectorTest.evaluateInPage("logToConsole()", callback); | 
| 55 | 61 | 
| 56     function callback() | 62     function callback() | 
| 57     { | 63     { | 
| 58         InspectorTest.dumpConsoleMessages(); | 64         InspectorTest.dumpConsoleMessages(); | 
| 59         InspectorTest.completeTest(); | 65         InspectorTest.completeTest(); | 
| 60     } | 66     } | 
| 61 } | 67 } | 
| 62 </script> | 68 </script> | 
| 63 </head> | 69 </head> | 
| 64 | 70 | 
| 65 <body onload="onload()"> | 71 <body onload="onload()"> | 
| 66 <p> | 72 <p> | 
| 67 Tests console.table. | 73 Tests console.table. | 
| 68 </p> | 74 </p> | 
| 69 </body> | 75 </body> | 
| 70 </html> | 76 </html> | 
| OLD | NEW | 
|---|