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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/console/console-custom-formatters.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 var a = {name: "a"}; 7 var a = {name: "a"};
8 var b = {name: "b"}; 8 var b = {name: "b"};
9 var c = {name: "c"}; 9 var c = {name: "c"};
10 10
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 if (consoleView._needsFullUpdate) 140 if (consoleView._needsFullUpdate)
141 consoleView._updateMessageList(); 141 consoleView._updateMessageList();
142 var viewMessages = consoleView._visibleViewMessages; 142 var viewMessages = consoleView._visibleViewMessages;
143 for (var i = 0; i < viewMessages.length; ++i) { 143 for (var i = 0; i < viewMessages.length; ++i) {
144 var uiMessage = viewMessages[i]; 144 var uiMessage = viewMessages[i];
145 var customElement = uiMessage.contentElement().querySelector("span / deep/ .custom-expandable-section-header"); 145 var customElement = uiMessage.contentElement().querySelector("span / deep/ .custom-expandable-section-header");
146 if (customElement) 146 if (customElement)
147 customElement.click(); 147 customElement.click();
148 } 148 }
149 149
150 InspectorTest.runAfterPendingDispatches(dumpExpanded); 150 InspectorTest.deprecatedRunAfterPendingDispatches(dumpExpanded);
151 } 151 }
152 152
153 function dumpExpanded() 153 function dumpExpanded()
154 { 154 {
155 InspectorTest.dumpConsoleMessages(); 155 InspectorTest.dumpConsoleMessages();
156 InspectorTest.completeTest(); 156 InspectorTest.completeTest();
157 } 157 }
158 } 158 }
159 </script> 159 </script>
160 </head> 160 </head>
161 161
162 <body onload="runTest()"> 162 <body onload="runTest()">
163 <p>Tests that console logging dumps properly when there are multiple custom form atters on the page</p> 163 <p>Tests that console logging dumps properly when there are multiple custom form atters on the page</p>
164 </body> 164 </body>
165 </html> 165 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698