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

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

Issue 1666563005: DevTools: merge ScriptCallStack and ScriptAsyncCallStack, move CallStacks from console to Runtime. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: testts Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js
index cea8d4fe64a58ff68207dfd9b8c0504650cb525c..cb75b17809c2294624b5230ed0169d279d4ad9da 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js
@@ -47,7 +47,7 @@ InspectorTest.prepareConsoleMessageText = function(messageElement, consoleMessag
// Strip out InjectedScript line numbers from stack traces to avoid rebaselining each time InjectedScriptSource is edited.
messageText = messageText.replace(/InjectedScript\.\w+ @ VM:\d+/g, "");
// Strip out InjectedScript line numbers from console message anchor.
- var functionName = consoleMessage && consoleMessage.stackTrace && consoleMessage.stackTrace[0] && consoleMessage.stackTrace[0].functionName || "";
+ var functionName = consoleMessage && consoleMessage.stackTrace && consoleMessage.stackTrace.callFrames[0] && consoleMessage.stackTrace.callFrames[0].functionName || "";
if (functionName.indexOf("InjectedScript") !== -1)
messageText = messageText.replace(/\bVM:\d+/, ""); // Only first replace.
if (messageText.startsWith("Navigated to")) {

Powered by Google App Engine
This is Rietveld 408576698