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

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

Issue 2530483002: DevTools: teach UISourceCodeFrame to merge messages (Closed)
Patch Set: improve test Created 4 years, 1 month 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-sourceframe-messages.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js
index 831baa5578c42e02a38debcf001cf66333fdf2dc..8ff0d82063abdf538a1969f398e83cff5fc8c0ac 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js
@@ -134,6 +134,20 @@ InspectorTest.runAsyncCallStacksTest = function(totalDebuggerStatements, maxAsyn
}
};
+InspectorTest.dumpSourceFrameMessages = function(sourceFrame, dumpFullURL)
+{
+ var messages = [];
+ for (var bucket of sourceFrame._rowMessageBuckets.values()) {
+ for (var rowMessage of bucket._messages) {
+ var message = rowMessage.message();
+ messages.push(String.sprintf(" %d:%d [%s] %s", message.lineNumber(), message.columnNumber(), message.level(), message.text()));
+ }
+ }
+ var name = dumpFullURL ? sourceFrame.uiSourceCode().url() : sourceFrame.uiSourceCode().displayName();
+ InspectorTest.addResult("SourceFrame " + name + ": " + messages.length + " message(s)");
+ InspectorTest.addResult(messages.join("\n"));
+}
+
InspectorTest.waitUntilPausedNextTime = function(callback)
{
InspectorTest._waitUntilPausedCallback = InspectorTest.safeWrap(callback);
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-sourceframe-messages.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698