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

Side by Side Diff: LayoutTests/inspector/console/console-format-es6.html

Issue 317703003: DevTools: Show internal properties in object preview in console. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixed tests Created 6 years, 6 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 | Annotate | Revision Log
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 var globals = []; 7 var globals = [];
8 8
9 function log(current) 9 function log(current)
10 { 10 {
11 console.log(globals[current]); 11 console.log(globals[current]);
12 console.log([globals[current]]); 12 console.log([globals[current]]);
13 } 13 }
14 14
15 function onload() 15 function onload()
16 { 16 {
17 var smb1 = Symbol(); 17 var smb1 = Symbol();
18 var smb2 = Symbol("a"); 18 var smb2 = Symbol("a");
19 var obj = new Object(); 19 var obj = {};
20 obj[Symbol()] = 1; 20 obj[Symbol()] = 1;
21 obj[smb2] = 2; 21 obj[smb2] = 2;
22 obj["a"] = smb1; 22 obj["a"] = smb1;
23 23
24 globals = [ 24 globals = [
25 smb1, smb2, obj 25 Promise.reject(-0), smb1, smb2, obj
26 ]; 26 ];
27 27
28 runTest(); 28 runTest();
29 } 29 }
30 30
31 function test() 31 function test()
32 { 32 {
33 InspectorTest.evaluateInPage("globals.length", loopOverGlobals.bind(this, 0) ); 33 InspectorTest.evaluateInPage("globals.length", loopOverGlobals.bind(this, 0) );
34 34
35 function loopOverGlobals(current, total) 35 function loopOverGlobals(current, total)
(...skipping 26 matching lines...) Expand all
62 } 62 }
63 </script> 63 </script>
64 </head> 64 </head>
65 65
66 <body onload="onload()"> 66 <body onload="onload()">
67 <p> 67 <p>
68 Tests that console properly displays information about ES6 features. 68 Tests that console properly displays information about ES6 features.
69 </p> 69 </p>
70 </body> 70 </body>
71 </html> 71 </html>
OLDNEW
« no previous file with comments | « LayoutTests/inspector/console/console-format.html ('k') | LayoutTests/inspector/console/console-format-es6-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698