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

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

Issue 1820393002: DevTools: [ux regression] There is no way to clear console history. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 a = []; 9 var a = [];
10 for (var i = 0; i < 42; ++i) 10 for (var i = 0; i < 42; ++i)
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 var g = new Uint8Array(new ArrayBuffer(Math.pow(20, 6) + Math.pow(20, 4) + 3 )); 54 var g = new Uint8Array(new ArrayBuffer(Math.pow(20, 6) + Math.pow(20, 4) + 3 ));
55 console.dir(g); 55 console.dir(g);
56 56
57 runTest(); 57 runTest();
58 } 58 }
59 59
60 function test() 60 function test()
61 { 61 {
62 WebInspector.ArrayGroupingTreeElement._bucketThreshold = 20; 62 WebInspector.ArrayGroupingTreeElement._bucketThreshold = 20;
63 63
64 var messages = WebInspector.ConsolePanel._view()._visibleViewMessages; 64 var messages = WebInspector.ConsoleView.instance()._visibleViewMessages;
65 var sections = []; 65 var sections = [];
66 for (var i = 0; i < messages.length; ++i) { 66 for (var i = 0; i < messages.length; ++i) {
67 var consoleMessage = messages[i].consoleMessage(); 67 var consoleMessage = messages[i].consoleMessage();
68 var element = messages[i].toMessageElement(); 68 var element = messages[i].toMessageElement();
69 var node = element.traverseNextNode(element); 69 var node = element.traverseNextNode(element);
70 while (node) { 70 while (node) {
71 if (node._section) { 71 if (node._section) {
72 sections.push(node._section); 72 sections.push(node._section);
73 node._section.expand(); 73 node._section.expand();
74 } 74 }
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 </script> 112 </script>
113 </head> 113 </head>
114 114
115 <body onload="onload()"> 115 <body onload="onload()">
116 <p> 116 <p>
117 Tests that console logging dumps large arrays properly. 117 Tests that console logging dumps large arrays properly.
118 </p> 118 </p>
119 119
120 </body> 120 </body>
121 </html> 121 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698