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

Side by Side 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: Add a test 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
(Empty)
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/console-test.js"></script>
5 <script>
6
7 function logSymbolToConsole()
8 {
9 var smb = Symbol();
10 console.log(smb);
11 smb = Symbol("a");
12 console.log(smb);
13 }
14
15 function logSymbolToConsoleWithError()
16 {
17 Symbol.prototype.toString = function (arg) { throw new Error(); };
18 var smb = Symbol();
19 console.log(smb);
20 }
21
22 function test()
aandrey 2014/05/26 11:01:42 can you take inspector/console/console-format.html
Alexandra Mikhaylova 2014/05/27 12:41:37 Done.
23 {
24 InspectorTest.evaluateInPage("logSymbolToConsole()", step1);
25
26 function step1()
27 {
28 InspectorTest.evaluateInPage("logSymbolToConsoleWithError()", complete);
29 }
30
31 function complete()
32 {
33 InspectorTest.dumpConsoleMessages();
34 InspectorTest.completeTest();
35 }
36 }
37 </script>
38 </head>
39
40 <body onload="runTest()">
41 <p>
42 Tests that console properly displays information about ES6 Symbols.
43 </p>
44 </body>
45 </html>
OLDNEW
« 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