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

Unified Diff: third_party/WebKit/LayoutTests/inspector/sources/sources-panel-extension-names.html

Issue 1957053002: DevTools: simplify NetworkProject.addFileForURL method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 7 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/sources-panel-extension-names.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/sources-panel-extension-names.html b/third_party/WebKit/LayoutTests/inspector/sources/sources-panel-extension-names.html
index 5772b7853b220b8902a493cd343a0128df6be5aa..d124c0ad069619d688710cbca8893f5064a4c218 100644
--- a/third_party/WebKit/LayoutTests/inspector/sources/sources-panel-extension-names.html
+++ b/third_party/WebKit/LayoutTests/inspector/sources/sources-panel-extension-names.html
@@ -22,8 +22,8 @@ function test()
function testAddExecutionContextBeforeFile(next)
{
InspectorTest.runtimeModel._executionContextCreated(mockExecutionContext);
- var contentProvider = new WebInspector.StaticContentProvider(WebInspector.resourceTypes.Script, "");
- WebInspector.NetworkProject.forTarget(InspectorTest.mainTarget).addFileForURL(mockContentScriptURL, contentProvider, InspectorTest.mainFrame(), true);
+ var contentProvider = new WebInspector.StaticContentProvider(WebInspector.resourceTypes.Script, "", mockContentScriptURL);
+ WebInspector.NetworkProject.forTarget(InspectorTest.mainTarget).addFile(contentProvider, InspectorTest.mainFrame(), true);
InspectorTest.dumpNavigatorView(contentScriptsNavigatorView);
next();
},

Powered by Google App Engine
This is Rietveld 408576698