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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/file-system-project-mapping.html

Issue 2780903003: DevTools: [Workspaces] remove support for .devtools file (Closed)
Patch Set: rebaseline 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/file-system-project-mapping-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/inspector/file-system-project-mapping.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/file-system-project-mapping.html b/third_party/WebKit/LayoutTests/http/tests/inspector/file-system-project-mapping.html
deleted file mode 100644
index 76a7ab2e4dab8100aaed42bc38e21d3c265ac141..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/file-system-project-mapping.html
+++ /dev/null
@@ -1,66 +0,0 @@
-<html>
-<head>
-<script src="inspector-test.js"></script>
-<script src="debugger-test.js"></script>
-<script src="persistence/persistence-test.js"></script>
-<script src="isolated-filesystem-test.js"></script>
-<script>
-function addScript(url)
-{
- var script = document.createElement("script");
- script.setAttribute("src", url);
- document.head.appendChild(script);
-}
-
-function test()
-{
- InspectorTest.forceUseDefaultMapping();
- var target = InspectorTest.mainTarget;
- var fileSystemProjectId = Persistence.FileSystemWorkspaceBinding.projectId("file:///var/www");
-
- function dumpFileSystemUISourceCodesMappings()
- {
- var uiSourceCodes = Workspace.workspace.project(fileSystemProjectId).uiSourceCodes();
- InspectorTest.addResult("UISourceCode uri to url mappings:");
- for (var uiSourceCode of uiSourceCodes) {
- var binding = Persistence.persistence.binding(uiSourceCode);
- var url = binding ? binding.network.url() : "";
- InspectorTest.addResult(" " + uiSourceCode.url() + " -> " + url);
- }
- }
-
- InspectorTest.runTestSuite([
- function testProjectBasedMapping(next)
- {
- InspectorTest.addResult("Adding file system.");
- var fs = new InspectorTest.TestFileSystem("file:///var/www");
- fs.root.mkdir("html").addFile("foo.js", "var foo = 1;");
- fs.root.mkdir("html2").addFile("bar.js", "var bar = 2;");
- fs.root.addFile(".devtools", JSON.stringify({ mappings: [ { folder: "/html/", url: "http://127.0.0.1:8000/inspector/resources/html/" }, { folder: "/html2/", url: "http://127.0.0.1:8000/inspector/resources/html2/" } ]}));
- fs.reportCreated(fileSystemCreated);
-
- function fileSystemCreated()
- {
- InspectorTest.evaluateInPage("addScript('resources/html/foo.js')");
- InspectorTest.evaluateInPage("addScript('resources/html2/bar.js')");
- Promise.all([
- InspectorTest.waitForBinding("foo.js"),
- InspectorTest.waitForBinding("bar.js")
- ]).then(onBindings);
- }
-
- function onBindings()
- {
- dumpFileSystemUISourceCodesMappings();
- fs.reportRemoved();
- next();
- }
- }
- ]);
-};
-</script>
-</head>
-<body onload="runTest()">
-<p>Tests file system project mappings.</p>
-</body>
-</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/file-system-project-mapping-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698