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

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

Issue 694753002: DevTools: Show preview for ES6 MapIterator, SetIterator in console. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 function onload() 7 function onload()
8 { 8 {
9 var obj = new Object(); 9 var obj = new Object();
10 obj["a"] = 1; 10 obj["a"] = 1;
(...skipping 18 matching lines...) Expand all
29 // Test circular dependency by entries. 29 // Test circular dependency by entries.
30 var s1 = new Set(); 30 var s1 = new Set();
31 var s2 = new Set(); 31 var s2 = new Set();
32 s1.add(s2); 32 s1.add(s2);
33 s2.add(s1); 33 s2.add(s1);
34 console.dir(s1); 34 console.dir(s1);
35 35
36 // Test "No Entries" placeholder. 36 // Test "No Entries" placeholder.
37 console.dir(new WeakMap()); 37 console.dir(new WeakMap());
38 38
39 // Test Map/Set iterators.
40 var m = new Map();
41 m.set(obj, {foo: 1});
42 var s = new Set();
43 s.add(obj);
44 [m, s].forEach(function(c) {
45 console.dir(c.keys());
46 console.dir(c.values());
47 console.dir(c.entries());
48 });
49
39 runTest(); 50 runTest();
40 } 51 }
41 52
42 function test() 53 function test()
43 { 54 {
44 InspectorTest.expandConsoleMessages(step1); 55 InspectorTest.expandConsoleMessages(step1);
45 56
46 function expandTreeElementFilter(treeElement) 57 function expandTreeElementFilter(treeElement)
47 { 58 {
48 return treeElement.title === "<entries>"; 59 return treeElement.title === "<entries>";
(...skipping 14 matching lines...) Expand all
63 </script> 74 </script>
64 </head> 75 </head>
65 76
66 <body onload="onload()"> 77 <body onload="onload()">
67 <p> 78 <p>
68 Tests that console logging dumps proper messages. 79 Tests that console logging dumps proper messages.
69 </p> 80 </p>
70 81
71 </body> 82 </body>
72 </html> 83 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/console/console-dir-es6-expected.txt » ('j') | Source/bindings/core/v8/DebuggerScript.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698