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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger/file-system-project-live-edit.html

Issue 2186753002: [DevTools] Track URL through the target (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments addressed Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/debugger-test.js"></script> 4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
5 <script src="../../../http/tests/inspector/workspace-test.js"></script> 5 <script src="../../../http/tests/inspector/workspace-test.js"></script>
6 <script src="../../../http/tests/inspector/isolated-filesystem-test.js"></script > 6 <script src="../../../http/tests/inspector/isolated-filesystem-test.js"></script >
7 <script src="../../../http/tests/inspector/live-edit-test.js"></script> 7 <script src="../../../http/tests/inspector/live-edit-test.js"></script>
8 <script> 8 <script>
9 function addScript() 9 function addScript()
10 { 10 {
11 var script = document.createElement("script"); 11 var script = document.createElement("script");
12 script.src = "resources/edit-me.js"; 12 script.src = "resources/edit-me.js";
13 document.head.appendChild(script); 13 document.head.appendChild(script);
14 } 14 }
15 15
16 function test() 16 function test()
17 { 17 {
18 InspectorTest.runTestSuite([ 18 InspectorTest.runTestSuite([
19 function testLiveEditReload(next) 19 function testLiveEditReload(next)
20 { 20 {
21 var fs = new InspectorTest.TestFileSystem("file:///var/www"); 21 var fs = new InspectorTest.TestFileSystem("file:///var/www");
22 fs.root.mkdir("html").addFile("edit-me.js", "function f()\n{\n re turn 0;\n}\n"); 22 fs.root.mkdir("html").addFile("edit-me.js", "function f()\n{\n re turn 0;\n}\n");
23 fs.root.addFile("bar.js", "<bar content>"); 23 fs.root.addFile("bar.js", "<bar content>");
24 InspectorTest.addResult("Adding file system."); 24 InspectorTest.addResult("Adding file system.");
25 fs.addFileMapping(WebInspector.ParsedURL.completeURL(InspectorTest.r esourceTreeModel.inspectedPageURL(), "resources/"), "/html/"); 25 fs.addFileMapping(WebInspector.ParsedURL.completeURL(InspectorTest.m ainTarget.inspectedURL(), "resources/"), "/html/");
26 fs.reportCreated(fileSystemCreated); 26 fs.reportCreated(fileSystemCreated);
27 27
28 function fileSystemCreated() 28 function fileSystemCreated()
29 { 29 {
30 InspectorTest.evaluateInPage("addScript()", didAddScript); 30 InspectorTest.evaluateInPage("addScript()", didAddScript);
31 } 31 }
32 32
33 function didAddScript() 33 function didAddScript()
34 { 34 {
35 InspectorTest.showScriptSource("edit-me.js", didShowScriptSource ); 35 InspectorTest.showScriptSource("edit-me.js", didShowScriptSource );
(...skipping 19 matching lines...) Expand all
55 } 55 }
56 } 56 }
57 ]); 57 ]);
58 }; 58 };
59 </script> 59 </script>
60 </head> 60 </head>
61 <body onload="runTest()"> 61 <body onload="runTest()">
62 <p>Tests file system project mappings in combination with live edit.</p> 62 <p>Tests file system project mappings in combination with live edit.</p>
63 </body> 63 </body>
64 </html> 64 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698