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

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

Issue 2369243004: [DevTools] Improved function preview everywhere (Closed)
Patch Set: addressed comments Created 4 years, 3 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-functions.html
diff --git a/third_party/WebKit/LayoutTests/inspector/console/console-functions.html b/third_party/WebKit/LayoutTests/inspector/console/console-functions.html
new file mode 100644
index 0000000000000000000000000000000000000000..4aa3c6087b6a314129069f5b93b405d1071afc8c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector/console/console-functions.html
@@ -0,0 +1,44 @@
+<html>
+<head>
+<script src="../../http/tests/inspector/inspector-test.js"></script>
+<script src="../../http/tests/inspector/console-test.js"></script>
+<script>
+
+function onload()
+{
+ function simple() {}
+ async function asyncSimple() {}
+ function* genSimple() {}
+
+ console.log(simple);
+ console.dir(simple);
+ console.log(asyncSimple);
+ console.dir(asyncSimple);
+ console.log(genSimple);
+ console.dir(genSimple);
+
+ var obj = { func1: simple, func2: asyncSimple, func3: genSimple };
+ console.log(obj);
+ console.dir(obj);
+
+ runTest();
+}
+
+function test()
+{
+ InspectorTest.expandConsoleMessages(dumpConsoleMessages);
+
+ function dumpConsoleMessages()
+ {
+ InspectorTest.dumpConsoleMessages(false, false, InspectorTest.textContentWithLineBreaks);
+ InspectorTest.completeTest();
+ }
+}
+
+</script>
+</head>
+
+<body onload="onload()">
+<p>Tests that console logging different types of functions correctly.</p>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698