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

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

Issue 1857713004: DevTools: simplify the async instrumentation harness. (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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/filesystem/async-callstack-filesystem.html » ('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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 if (node.nodeType === Node.ELEMENT_NODE && node.className) 112 if (node.nodeType === Node.ELEMENT_NODE && node.className)
113 classNames.push(node.className.replace("platform-linux", "pl atform-*").replace("platform-mac", "platform-*").replace("platform-windows", "pl atform-*")); 113 classNames.push(node.className.replace("platform-linux", "pl atform-*").replace("platform-mac", "platform-*").replace("platform-windows", "pl atform-*"));
114 } 114 }
115 } 115 }
116 116
117 if (InspectorTest.dumpConsoleTableMessage(uiMessage, false, result)) { 117 if (InspectorTest.dumpConsoleTableMessage(uiMessage, false, result)) {
118 if (dumpClassNames) 118 if (dumpClassNames)
119 result.push(classNames.join(" > ")); 119 result.push(classNames.join(" > "));
120 } else { 120 } else {
121 var messageText = formatter(element, message); 121 var messageText = formatter(element, message);
122 messageText = messageText.replace(/VM\d+/g, "VM");
122 result.push(messageText + (dumpClassNames ? " " + classNames.join(" > ") : "")); 123 result.push(messageText + (dumpClassNames ? " " + classNames.join(" > ") : ""));
123 } 124 }
124 125
125 if (printOriginatingCommand && uiMessage.consoleMessage().originatingMes sage()) 126 if (printOriginatingCommand && uiMessage.consoleMessage().originatingMes sage())
126 result.push("Originating from: " + uiMessage.consoleMessage().origin atingMessage().messageText); 127 result.push("Originating from: " + uiMessage.consoleMessage().origin atingMessage().messageText);
127 } 128 }
128 return result; 129 return result;
129 } 130 }
130 131
131 InspectorTest.formatterIgnoreStackFrameUrls = function(messageFormatter, node) 132 InspectorTest.formatterIgnoreStackFrameUrls = function(messageFormatter, node)
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 if (consoleView._visibleViewMessages.length === expectedCount) { 403 if (consoleView._visibleViewMessages.length === expectedCount) {
403 InspectorTest.addResult("Message count: " + expectedCount); 404 InspectorTest.addResult("Message count: " + expectedCount);
404 callback(); 405 callback();
405 } else { 406 } else {
406 InspectorTest.addSniffer(consoleView, "_messageAppendedForTests", ch eckAndReturn); 407 InspectorTest.addSniffer(consoleView, "_messageAppendedForTests", ch eckAndReturn);
407 } 408 }
408 } 409 }
409 } 410 }
410 411
411 } 412 }
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/filesystem/async-callstack-filesystem.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698