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

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

Issue 2779703002: DevTools: format generator objects as objects (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/console/console-format-es6-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 p = Promise.reject(-0);
18 p.catch(function() {});
19
17 var smb1 = Symbol(); 20 var smb1 = Symbol();
18 var smb2 = Symbol("a"); 21 var smb2 = Symbol("a");
19 var obj = { 22 var obj = {
20 get getter() {} 23 get getter() {}
21 }; 24 };
22 obj["a"] = smb1; 25 obj["a"] = smb1;
23 obj[smb2] = 2; 26 obj[smb2] = 2;
24 27
25 var map = new Map(); 28 var map = new Map();
26 var weakMap = new WeakMap(); 29 var weakMap = new WeakMap();
(...skipping 16 matching lines...) Expand all
43 setSet.add(weakSet); 46 setSet.add(weakSet);
44 47
45 var bigmap = new Map(); 48 var bigmap = new Map();
46 bigmap.set(" from str ", " to str "); 49 bigmap.set(" from str ", " to str ");
47 bigmap.set(undefined, undefined); 50 bigmap.set(undefined, undefined);
48 bigmap.set(null, null); 51 bigmap.set(null, null);
49 bigmap.set(42, 42); 52 bigmap.set(42, 42);
50 bigmap.set({foo:"from"}, {foo:"to"}); 53 bigmap.set({foo:"from"}, {foo:"to"});
51 bigmap.set(["from"], ["to"]); 54 bigmap.set(["from"], ["to"]);
52 55
53 var p = Promise.reject(-0); 56 var genFunction = function *() {
54 p.catch(function() {}); 57 yield 1;
58 yield 2;
59 }
60 var generator = genFunction();
55 61
56 globals = [ 62 globals = [
57 p, smb1, smb2, obj, map, weakMap, set, weakSet, 63 p, smb1, smb2, obj, map, weakMap, set, weakSet,
58 mapMap0, mapMap, setSet0, setSet, bigmap, 64 mapMap0, mapMap, setSet0, setSet, bigmap, generator
59 ]; 65 ];
60 66
61 runTest(); 67 runTest();
62 } 68 }
63 69
64 function test() 70 function test()
65 { 71 {
66 InspectorTest.evaluateInPage("globals.length", loopOverGlobals.bind(this, 0) ); 72 InspectorTest.evaluateInPage("globals.length", loopOverGlobals.bind(this, 0) );
67 73
68 function loopOverGlobals(current, total) 74 function loopOverGlobals(current, total)
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 } 106 }
101 </script> 107 </script>
102 </head> 108 </head>
103 109
104 <body onload="onload()"> 110 <body onload="onload()">
105 <p> 111 <p>
106 Tests that console properly displays information about ES6 features. 112 Tests that console properly displays information about ES6 features.
107 </p> 113 </p>
108 </body> 114 </body>
109 </html> 115 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/console/console-format-es6-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698