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

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

Issue 2712513002: DevTools: extract ObjectUI module from Components (Closed)
Patch Set: fix build.gn Created 3 years, 10 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 console.log("%O", f) 52 console.log("%O", f)
53 53
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 Components.ArrayGroupingTreeElement._bucketThreshold = 20; 62 ObjectUI.ArrayGroupingTreeElement._bucketThreshold = 20;
63 63
64 var messages = Console.ConsoleView.instance()._visibleViewMessages; 64 var messages = Console.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 }
75 node = node.traverseNextNode(element); 75 node = node.traverseNextNode(element);
76 } 76 }
77 } 77 }
78 78
79 InspectorTest.addSniffer(Components.ArrayGroupingTreeElement.prototype, "onp opulate", populateCalled, true); 79 InspectorTest.addSniffer(ObjectUI.ArrayGroupingTreeElement.prototype, "onpop ulate", populateCalled, true);
80 var populated = false; 80 var populated = false;
81 function populateCalled() 81 function populateCalled()
82 { 82 {
83 populated = true; 83 populated = true;
84 } 84 }
85 85
86 InspectorTest.deprecatedRunAfterPendingDispatches(expandRecursively); 86 InspectorTest.deprecatedRunAfterPendingDispatches(expandRecursively);
87 87
88 function expandRecursively() 88 function expandRecursively()
89 { 89 {
(...skipping 22 matching lines...) Expand all
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