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

Side by Side 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 unified diff | Download patch
OLDNEW
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 a() 7 function logSymbolToConsoleWithError()
8 { 8 {
9 console.trace(1, 2, 3); 9 Symbol.prototype.toString = function (arg) { throw new Error(); };
10 var smb = Symbol();
11 console.log(smb);
10 } 12 }
11 13
12 function test() 14 function test()
13 { 15 {
14 function callback() 16 InspectorTest.evaluateInPage("logSymbolToConsoleWithError()", complete);
17
18 function complete()
15 { 19 {
16 InspectorTest.dumpConsoleMessages(); 20 InspectorTest.dumpConsoleMessages();
17 InspectorTest.completeTest(); 21 InspectorTest.completeTest();
18 } 22 }
19 InspectorTest.evaluateInPage("setTimeout(a, 0)");
20 InspectorTest.addConsoleSniffer(callback);
21 } 23 }
22
23 </script> 24 </script>
24 </head> 25 </head>
25 26
26 <body onload="runTest()"> 27 <body onload="runTest()">
27 <p> 28 <p>
28 Tests that console.trace dumps arguments alongside the stack trace. 29 Tests that console properly displays information about ES6 Symbols.
29 </p> 30 </p>
30
31 </body> 31 </body>
32 </html> 32 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698