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

Unified Diff: third_party/WebKit/LayoutTests/inspector/sources/compile-javascript.html

Issue 2514323008: DevTools: move message management from UISourceCodeFrame to UISourceCode (Closed)
Patch Set: address comments 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
Index: third_party/WebKit/LayoutTests/inspector/sources/compile-javascript.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/compile-javascript.html b/third_party/WebKit/LayoutTests/inspector/sources/compile-javascript.html
index 18a8d6e5daa05e6b0c7b8f74dce7684225ea2a9d..1958b8ca335d9af6543d645cb080139856874f8e 100644
--- a/third_party/WebKit/LayoutTests/inspector/sources/compile-javascript.html
+++ b/third_party/WebKit/LayoutTests/inspector/sources/compile-javascript.html
@@ -19,9 +19,8 @@ function test()
function onCompilationFinished(sourceFrame)
{
- for (var line in sourceFrame._rowMessageBuckets) {
- var bubble = sourceFrame._rowMessageBuckets[line];
- for (var rowMessage of bubble._messages) {
+ for (var bucket of sourceFrame._rowMessageBuckets.values()) {
+ for (var rowMessage of bucket._messages) {
var message = rowMessage.message();
InspectorTest.addResult(String.sprintf("%d:%d [%s] %s", message.lineNumber(), message.columnNumber(), message.level(), message.text()));
}

Powered by Google App Engine
This is Rietveld 408576698