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

Unified Diff: LayoutTests/inspector/console/console-format-es6-symbols-error.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
Index: LayoutTests/inspector/console/console-format-es6-symbols-error.html
diff --git a/LayoutTests/inspector/console/console-trace-arguments.html b/LayoutTests/inspector/console/console-format-es6-symbols-error.html
similarity index 51%
copy from LayoutTests/inspector/console/console-trace-arguments.html
copy to LayoutTests/inspector/console/console-format-es6-symbols-error.html
index edcbbc99e3509916e24991e62ef4d1c71c8069f4..bc59d01abb20d90ca5c58ce36178c10b0fa3e5c0 100644
--- a/LayoutTests/inspector/console/console-trace-arguments.html
+++ b/LayoutTests/inspector/console/console-format-es6-symbols-error.html
@@ -4,29 +4,29 @@
<script src="../../http/tests/inspector/console-test.js"></script>
<script>
-function a()
+function logSymbolToConsoleWithError()
{
- console.trace(1, 2, 3);
+ Symbol.prototype.toString = function (arg) { throw new Error(); };
+ var smb = Symbol();
+ console.log(smb);
}
function test()
{
- function callback()
+ InspectorTest.evaluateInPage("logSymbolToConsoleWithError()", complete);
+
+ function complete()
{
InspectorTest.dumpConsoleMessages();
InspectorTest.completeTest();
}
- InspectorTest.evaluateInPage("setTimeout(a, 0)");
- InspectorTest.addConsoleSniffer(callback);
}
-
</script>
</head>
<body onload="runTest()">
<p>
-Tests that console.trace dumps arguments alongside the stack trace.
+Tests that console properly displays information about ES6 Symbols.
</p>
-
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698