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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/persistence/automapping-absolute-paths.html

Issue 2484833003: DevTools: teach automapping to deal with network resources with file:// urls (Closed)
Patch Set: Created 4 years, 1 month 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/persistence/automapping-absolute-paths-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/persistence/automapping-absolute-paths.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/automapping-absolute-paths.html b/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/automapping-absolute-paths.html
new file mode 100644
index 0000000000000000000000000000000000000000..49696e2d0854660e8fd1773046408b2d290f6ac9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/automapping-absolute-paths.html
@@ -0,0 +1,38 @@
+<html>
+<head>
+<script src="../inspector-test.js"></script>
+<script src="../isolated-filesystem-test.js"></script>
+<script src="./persistence-test.js"></script>
+<script src="./automapping-test.js"></script>
+<script>
+
+function test()
+{
+ var app_js = {
+ content: "console.log('foo.js!');",
+ time: null
+ };
+
+ var automappingTest = new InspectorTest.AutomappingTest(new WebInspector.Workspace());
+ automappingTest.addNetworkResources({
+ // Make sure main resource gets mapped.
+ "file:///usr/local/node/app.js": app_js,
+ });
+
+ var fs = new InspectorTest.TestFileSystem("file:///usr/local/node");
+ InspectorTest.addFiles(fs, {
+ "app.js": app_js,
+ });
+ fs.reportCreated(onFileSystemCreated);
+
+ function onFileSystemCreated()
+ {
+ automappingTest.waitUntilMappingIsStabilized(InspectorTest.completeTest.bind(InspectorTest));
+ }
+}
+</script>
+</head>
+<body onload="runTest()">
+<p>Verify that automapping is capable of mapping file:// urls.</p>
+</body>
+</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/persistence/automapping-absolute-paths-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698