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

Unified Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/scripts-panel.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/debugger-ui/scripts-panel.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/scripts-panel.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/scripts-panel.html
index a4ed4a8aadab656fde05897820aed9af8b3f1932..7b5150abeb035f275f3c5cd1668d312a7b66a628 100644
--- a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/scripts-panel.html
+++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/scripts-panel.html
@@ -22,7 +22,7 @@ function test()
function createContentProvider(url)
{
- var contentProvider = new WebInspector.StaticContentProvider(WebInspector.resourceTypes.Script, "");
+ var contentProvider = new WebInspector.StaticContentProvider(WebInspector.resourceTypes.Script, "", url);
contentProvider.requestContent = function()
{
InspectorTest.addResult("Source requested for " + url);
@@ -40,7 +40,7 @@ function test()
function addNetworkFile(workspace, url)
{
- return InspectorTest.testNetworkProject.addFileForURL(url, createContentProvider(url), InspectorTest.mainFrame());
+ return InspectorTest.testNetworkProject.addFile(createContentProvider(url), InspectorTest.mainFrame());
}
function addDebuggerFile(workspace, url)

Powered by Google App Engine
This is Rietveld 408576698