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

Unified Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/source-url-comment.html

Issue 2795193003: DevTools: carefully cleanup script UISourceCodes (Closed)
Patch Set: address comments Created 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/source-url-comment.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/source-url-comment.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/source-url-comment.html
index 259533df15f90d16fb32c7bdf845d5e1008ca907..75e32f35b852fd3d5009f31de935fcafa3a4bb21 100644
--- a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/source-url-comment.html
+++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/source-url-comment.html
@@ -54,10 +54,9 @@ function test()
{
function forEachScriptMatchingURL(url, handler)
{
- var scripts = InspectorTest.debuggerModel._scripts;
- for (var id in scripts) {
- if (scripts[id].sourceURL.indexOf(url) !== -1)
- handler(scripts[id]);
+ for (var script of InspectorTest.debuggerModel.scripts()) {
+ if (script.sourceURL.indexOf(url) !== -1)
+ handler(script);
}
}

Powered by Google App Engine
This is Rietveld 408576698