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

Unified Diff: third_party/WebKit/LayoutTests/inspector/workspace-mapping.html

Issue 1523193002: DevTools: merge UISourceCode's parentPath, name, originURL and uri. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaselined Created 5 years 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/workspace-mapping.html
diff --git a/third_party/WebKit/LayoutTests/inspector/workspace-mapping.html b/third_party/WebKit/LayoutTests/inspector/workspace-mapping.html
index 2e57159b2c6712b761d6e7509f4ae9ed15a6200d..9897cbb81295f3137206fd6219f2fd477ce3be34 100644
--- a/third_party/WebKit/LayoutTests/inspector/workspace-mapping.html
+++ b/third_party/WebKit/LayoutTests/inspector/workspace-mapping.html
@@ -15,13 +15,11 @@ function test()
if (!projects[projectId]) {
if (projectId.startsWith("1:"))
projectId = projectId.substring(2);
- project = new WebInspector.ProjectStore(workspace, projectId, WebInspector.projectTypes.Network, projectId, "");
+ project = new WebInspector.ProjectStore(workspace, projectId, WebInspector.projectTypes.Network, "");
workspace.addProject(project);
projects[projectId] = project;
}
- var parentPath = path.substring(0, path.lastIndexOf("/"));
- var name = path.substring(path.lastIndexOf("/") + 1);
- var uiSourceCode = project.createUISourceCode(parentPath, name, path, WebInspector.resourceTypes.Script);
+ var uiSourceCode = project.createUISourceCode(path, WebInspector.resourceTypes.Script);
project.addUISourceCode(uiSourceCode);
}
@@ -50,11 +48,11 @@ function test()
function dumpURLForPath(fileSystemPath, filePath)
{
- var url = networkMapping.urlForPath(fileSystemPath, filePath)
+ var url = networkMapping._urlForPath(fileSystemPath, "file://" + fileSystemPath + "/" + filePath)
InspectorTest.addResult(" path " + fileSystemPath + " / " + filePath + " is mapped to " + (url ? url : null));
}
- createUISourceCode(projectId, "localhost/index.html");
+ createUISourceCode(projectId, "file:///var/www/localhost/index.html");
createUISourceCode("1:http://www.example.com", "index.html");
createUISourceCode("1:http://localhost", "index.html");

Powered by Google App Engine
This is Rietveld 408576698