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

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

Issue 1947143003: DevTools: make throttler with timeout respect the timeout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tests fixed Created 4 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/components/throttler-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/components/throttler-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698