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

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

Issue 2440293002: [LayoutTests] Remove line and column of evaluate function (Closed)
Patch Set: Remove android expected output Created 4 years, 2 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 2c069cc1634217ab5cd0bfec855255b716ca1c00..4508fcf1a48e7779e656b397240da7ae76d82f03 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js
@@ -54,6 +54,9 @@ InspectorTest.prepareConsoleMessageText = function(messageElement, consoleMessag
var messageText = messageElement.deepTextContent().replace(/\u200b/g, "");
// Replace scriptIds with generic scriptId string to avoid flakiness.
messageText = messageText.replace(/VM\d+/g, "VM");
+ // Remove line and column of evaluate method.
+ messageText = messageText.replace(/(at eval \(eval at evaluate) \(:\d+:\d+\)/, '$1');
+
if (messageText.startsWith("Navigated to")) {
var fileName = messageText.split(" ").pop().split("/").pop();
messageText = "Navigated to " + fileName;

Powered by Google App Engine
This is Rietveld 408576698