OLD | NEW |
1 var initialize_ConsoleTest = function() { | 1 var initialize_ConsoleTest = function() { |
2 | 2 |
3 InspectorTest.preloadModule("source_frame"); | 3 InspectorTest.preloadModule("source_frame"); |
4 InspectorTest.preloadPanel("console"); | 4 InspectorTest.preloadPanel("console"); |
5 | 5 |
6 InspectorTest.selectMainExecutionContext = function() | 6 InspectorTest.selectMainExecutionContext = function() |
7 { | 7 { |
8 var executionContexts = InspectorTest.mainTarget.runtimeModel.executionConte
xts(); | 8 var executionContexts = InspectorTest.mainTarget.runtimeModel.executionConte
xts(); |
9 for (var context of executionContexts) { | 9 for (var context of executionContexts) { |
10 if (context.isDefault) { | 10 if (context.isDefault) { |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 InspectorTest.dumpConsoleCounters = function() | 235 InspectorTest.dumpConsoleCounters = function() |
236 { | 236 { |
237 var counter = WebInspector.Main.WarningErrorCounter._instanceForTest; | 237 var counter = WebInspector.Main.WarningErrorCounter._instanceForTest; |
238 for (var index = 0; index < counter._titles.length; ++index) | 238 for (var index = 0; index < counter._titles.length; ++index) |
239 InspectorTest.addResult(counter._titles[index]); | 239 InspectorTest.addResult(counter._titles[index]); |
240 InspectorTest.dumpConsoleClassesBrief(); | 240 InspectorTest.dumpConsoleClassesBrief(); |
241 } | 241 } |
242 | 242 |
243 InspectorTest.expandConsoleMessages = function(callback, deepFilter, sectionFilt
er) | 243 InspectorTest.expandConsoleMessages = function(callback, deepFilter, sectionFilt
er) |
244 { | 244 { |
| 245 WebInspector.ConsoleView.instance()._viewportThrottler.flush(); |
245 var messageViews = WebInspector.ConsoleView.instance()._visibleViewMessages; | 246 var messageViews = WebInspector.ConsoleView.instance()._visibleViewMessages; |
246 | 247 |
247 // Initiate round-trips to fetch necessary data for further rendering. | 248 // Initiate round-trips to fetch necessary data for further rendering. |
248 for (var i = 0; i < messageViews.length; ++i) | 249 for (var i = 0; i < messageViews.length; ++i) |
249 messageViews[i].contentElement(); | 250 messageViews[i].contentElement(); |
250 | 251 |
251 InspectorTest.deprecatedRunAfterPendingDispatches(expandTreeElements); | 252 InspectorTest.deprecatedRunAfterPendingDispatches(expandTreeElements); |
252 | 253 |
253 function expandTreeElements() | 254 function expandTreeElements() |
254 { | 255 { |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 if (consoleView._visibleViewMessages.length === expectedCount) { | 404 if (consoleView._visibleViewMessages.length === expectedCount) { |
404 InspectorTest.addResult("Message count: " + expectedCount); | 405 InspectorTest.addResult("Message count: " + expectedCount); |
405 callback(); | 406 callback(); |
406 } else { | 407 } else { |
407 InspectorTest.addSniffer(consoleView, "_messageAppendedForTests", ch
eckAndReturn); | 408 InspectorTest.addSniffer(consoleView, "_messageAppendedForTests", ch
eckAndReturn); |
408 } | 409 } |
409 } | 410 } |
410 } | 411 } |
411 | 412 |
412 } | 413 } |
OLD | NEW |