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

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

Issue 1877223003: DevTools: deprecate InspectorTest.runAfterPendingDispatches (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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 } 76 }
77 } 77 }
78 78
79 InspectorTest.addSniffer(WebInspector.ArrayGroupingTreeElement.prototype, "o npopulate", populateCalled, true); 79 InspectorTest.addSniffer(WebInspector.ArrayGroupingTreeElement.prototype, "o npopulate", 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.runAfterPendingDispatches(expandRecursively); 86 InspectorTest.deprecatedRunAfterPendingDispatches(expandRecursively);
87 87
88 function expandRecursively() 88 function expandRecursively()
89 { 89 {
90 for (var i = 0; i < sections.length; ++i) { 90 for (var i = 0; i < sections.length; ++i) {
91 var children = sections[i].rootElement().children(); 91 var children = sections[i].rootElement().children();
92 for (var j = 0; j < children.length; ++j) { 92 for (var j = 0; j < children.length; ++j) {
93 for (var treeElement = children[j]; treeElement; treeElement = t reeElement.traverseNextTreeElement(true, null, true)) { 93 for (var treeElement = children[j]; treeElement; treeElement = t reeElement.traverseNextTreeElement(true, null, true)) {
94 if (treeElement.listItemElement.textContent.indexOf("__proto __") === -1) 94 if (treeElement.listItemElement.textContent.indexOf("__proto __") === -1)
95 treeElement.expand(); 95 treeElement.expand();
96 } 96 }
97 } 97 }
98 } 98 }
99 if (populated) 99 if (populated)
100 InspectorTest.runAfterPendingDispatches(completeTest); 100 InspectorTest.deprecatedRunAfterPendingDispatches(completeTest);
101 else 101 else
102 InspectorTest.runAfterPendingDispatches(expandRecursively); 102 InspectorTest.deprecatedRunAfterPendingDispatches(expandRecursively) ;
103 } 103 }
104 104
105 function completeTest() 105 function completeTest()
106 { 106 {
107 InspectorTest.dumpConsoleMessages(false, false, InspectorTest.textConten tWithLineBreaks); 107 InspectorTest.dumpConsoleMessages(false, false, InspectorTest.textConten tWithLineBreaks);
108 InspectorTest.completeTest(); 108 InspectorTest.completeTest();
109 } 109 }
110 } 110 }
111 111
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