Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: third_party/WebKit/LayoutTests/inspector/console/console-format-table.html

Issue 2918993003: DevTools: allow shallow array values in console.table (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/inspector/console/console-format-table.html
diff --git a/third_party/WebKit/LayoutTests/inspector/console/console-format-table.html b/third_party/WebKit/LayoutTests/inspector/console/console-format-table.html
index 8fc891a6ca07fa5bcb4c7536ed91be777d3a5e59..4fb1897521fe753e4fe898223e962a15ed2da0f4 100644
--- a/third_party/WebKit/LayoutTests/inspector/console/console-format-table.html
+++ b/third_party/WebKit/LayoutTests/inspector/console/console-format-table.html
@@ -41,6 +41,12 @@ function logToConsole()
console.log("Missing column name");
console.table([{a:1, b:2, c:3}, {a:"foo"}], ["d"]);
+
+ console.log("Shallow array");
+ console.table([1, "foo", null]);
+
+ console.log("Deep and shallow array");
+ console.table([1, "foo", [2]]);
}
function onload()

Powered by Google App Engine
This is Rietveld 408576698