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

Unified Diff: LayoutTests/inspector/console/console-format-es6.html

Issue 295633003: Show information about Symbols in DevTools console. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: REBASE Created 6 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
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/inspector/console/console-format-es6-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/console/console-format-es6.html
diff --git a/LayoutTests/inspector/console/console-format-es6.html b/LayoutTests/inspector/console/console-format-es6.html
new file mode 100644
index 0000000000000000000000000000000000000000..1a7b7ce642d5d6f6a22e2ad7951c877130058d97
--- /dev/null
+++ b/LayoutTests/inspector/console/console-format-es6.html
@@ -0,0 +1,67 @@
+<html>
+<head>
+<script src="../../http/tests/inspector/inspector-test.js"></script>
+<script src="../../http/tests/inspector/console-test.js"></script>
+<script>
+
+var globals = [];
+
+function log(current)
+{
+ console.log(globals[current]);
+ console.log([globals[current]]);
+}
+
+function onload()
+{
+ var smb1 = Symbol();
+ var smb2 = Symbol("a");
+
+ globals = [
+ smb1, smb2
+ ];
+
+ runTest();
+}
+
+function test()
+{
+ InspectorTest.evaluateInPage("globals.length", loopOverGlobals.bind(this, 0));
+
+ function loopOverGlobals(current, total)
+ {
+ function advance()
+ {
+ var next = current + 1;
+ if (next == total.description) {
+ InspectorTest.expandConsoleMessages();
+ InspectorTest.runAfterPendingDispatches(finish);
+ } else {
+ loopOverGlobals(next, total);
+ }
+ }
+
+ function finish()
+ {
+ InspectorTest.dumpConsoleMessages();
+ InspectorTest.completeTest();
+ }
+
+ InspectorTest.evaluateInPage("log(" + current + ")");
+ InspectorTest.runAfterPendingDispatches(evalInConsole);
+ function evalInConsole()
+ {
+ InspectorTest.evaluateInConsole("globals[" + current + "]");
+ InspectorTest.runAfterPendingDispatches(advance);
+ }
+ }
+}
+</script>
+</head>
+
+<body onload="onload()">
+<p>
+Tests that console properly displays information about ES6 features.
+</p>
+</body>
+</html>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/inspector/console/console-format-es6-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698