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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js

Issue 2770523002: DevTools: kill Common.Throttler.flush() method (Closed)
Patch Set: Created 3 years, 9 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 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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 InspectorTest.dumpConsoleCounters = function() 236 InspectorTest.dumpConsoleCounters = function()
237 { 237 {
238 var counter = Main.Main.WarningErrorCounter._instanceForTest; 238 var counter = Main.Main.WarningErrorCounter._instanceForTest;
239 for (var index = 0; index < counter._titles.length; ++index) 239 for (var index = 0; index < counter._titles.length; ++index)
240 InspectorTest.addResult(counter._titles[index]); 240 InspectorTest.addResult(counter._titles[index]);
241 InspectorTest.dumpConsoleClassesBrief(); 241 InspectorTest.dumpConsoleClassesBrief();
242 } 242 }
243 243
244 InspectorTest.expandConsoleMessages = function(callback, deepFilter, sectionFilt er) 244 InspectorTest.expandConsoleMessages = function(callback, deepFilter, sectionFilt er)
245 { 245 {
246 Console.ConsoleView.instance()._viewportThrottler.flush(); 246 Console.ConsoleView.instance()._invalidateViewport();
247 var messageViews = Console.ConsoleView.instance()._visibleViewMessages; 247 var messageViews = Console.ConsoleView.instance()._visibleViewMessages;
248 248
249 // Initiate round-trips to fetch necessary data for further rendering. 249 // Initiate round-trips to fetch necessary data for further rendering.
250 for (var i = 0; i < messageViews.length; ++i) 250 for (var i = 0; i < messageViews.length; ++i)
251 messageViews[i].element(); 251 messageViews[i].element();
252 252
253 InspectorTest.deprecatedRunAfterPendingDispatches(expandTreeElements); 253 InspectorTest.deprecatedRunAfterPendingDispatches(expandTreeElements);
254 254
255 function expandTreeElements() 255 function expandTreeElements()
256 { 256 {
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 if (consoleView._visibleViewMessages.length === expectedCount) { 419 if (consoleView._visibleViewMessages.length === expectedCount) {
420 InspectorTest.addResult("Message count: " + expectedCount); 420 InspectorTest.addResult("Message count: " + expectedCount);
421 callback(); 421 callback();
422 } else { 422 } else {
423 InspectorTest.addSniffer(consoleView, "_messageAppendedForTests", ch eckAndReturn); 423 InspectorTest.addSniffer(consoleView, "_messageAppendedForTests", ch eckAndReturn);
424 } 424 }
425 } 425 }
426 } 426 }
427 427
428 } 428 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698