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

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

Issue 2514893004: DevTools: show array entries that are getters (Closed)
Patch Set: Add needsManualRebase to TE Created 4 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
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 5
6 <script> 6 <script>
7 // Global Values 7 // Global Values
8 var globals = []; 8 var globals = [];
9 9
10 function log(current) 10 function log(current)
11 { 11 {
12 console.log(globals[current]); 12 console.log(globals[current]);
13 console.log([globals[current]]); 13 console.log([globals[current]]);
14 } 14 }
15 15
16 function onload() 16 function onload()
17 { 17 {
18 var foo = { foo: "foo"}; 18 var foo = { foo: "foo"};
19 var bar = { bar: "bar" }; 19 var bar = { bar: "bar" };
20 bar.__proto__ = foo; 20 bar.__proto__ = foo;
21 var array = ["test", "test2"]; array.length = 10; 21 var array = ["test", "test2"]; array.length = 10;
22 array.foo = {}; 22 array.foo = {};
23 array[4] = "test4"; 23 array[4] = "test4";
24 Object.defineProperty(array, 5, { get() { return 1 } });
24 25
25 var svg = document.getElementById("svg-node"); 26 var svg = document.getElementById("svg-node");
26 console.log(array); 27 console.log(array);
27 console.log("%o", array); 28 console.log("%o", array);
28 console.log("%O", array); 29 console.log("%O", array);
29 console.log("Test for zero \"%f\" in formatter", 0); 30 console.log("Test for zero \"%f\" in formatter", 0);
30 console.log("%% self-escape1", "dummy"); 31 console.log("%% self-escape1", "dummy");
31 console.log("%%s self-escape2", "dummy"); 32 console.log("%%s self-escape2", "dummy");
32 console.log("%%ss self-escape3", "dummy"); 33 console.log("%%ss self-escape3", "dummy");
33 console.log("%%s%s%%s self-escape4", "dummy"); 34 console.log("%%s%s%%s self-escape4", "dummy");
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 } 137 }
137 </script> 138 </script>
138 </head> 139 </head>
139 140
140 <body onload="onload()"> 141 <body onload="onload()">
141 <div id="x"></div> 142 <div id="x"></div>
142 <p id="p">Tests that console logging dumps proper messages.</p> 143 <p id="p">Tests that console logging dumps proper messages.</p>
143 </body> 144 </body>
144 <svg id="svg-node"></svg> 145 <svg id="svg-node"></svg>
145 </html> 146 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698