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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/elements/styles/edit-css-with-source-url.html

Issue 2515583002: DevTools: move FileSystemWorkspaceBinding under persistence/ (Closed)
Patch Set: rebaseline 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/persistence/automapping-test.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../inspector-test.js"></script> 3 <script src="../../inspector-test.js"></script>
4 <script src="../../debugger-test.js"></script> 4 <script src="../../debugger-test.js"></script>
5 <script src="../../elements-test.js"></script> 5 <script src="../../elements-test.js"></script>
6 <script src="../../workspace-test.js"></script> 6 <script src="../../workspace-test.js"></script>
7 <script src="../../isolated-filesystem-test.js"></script> 7 <script src="../../isolated-filesystem-test.js"></script>
8 <script> 8 <script>
9 function loadStylesheet(line0, line1, line2) 9 function loadStylesheet(line0, line1, line2)
10 { 10 {
(...skipping 23 matching lines...) Expand all
34 var fs = new InspectorTest.TestFileSystem(fileSystemPath); 34 var fs = new InspectorTest.TestFileSystem(fileSystemPath);
35 fs.root.addFile("foo.css", "#inspected {\n color: red;\n}\n"); 35 fs.root.addFile("foo.css", "#inspected {\n color: red;\n}\n");
36 InspectorTest.addResult("Adding file system mapping."); 36 InspectorTest.addResult("Adding file system mapping.");
37 fs.addFileMapping("http://localhost:8000/inspector/elements/styles/" , "/"); 37 fs.addFileMapping("http://localhost:8000/inspector/elements/styles/" , "/");
38 fs.reportCreated(fileSystemCreated); 38 fs.reportCreated(fileSystemCreated);
39 39
40 var uiSourceCode; 40 var uiSourceCode;
41 41
42 function fileSystemCreated() 42 function fileSystemCreated()
43 { 43 {
44 var fileSystemProjectId = Bindings.FileSystemWorkspaceBinding.pr ojectId(fileSystemPath); 44 var fileSystemProjectId = Persistence.FileSystemWorkspaceBinding .projectId(fileSystemPath);
45 uiSourceCode = Workspace.workspace.uiSourceCode(fileSystemProjec tId, "file:///var/www/foo.css"); 45 uiSourceCode = Workspace.workspace.uiSourceCode(fileSystemProjec tId, "file:///var/www/foo.css");
46 InspectorTest.showUISourceCode(uiSourceCode, didShowScriptSource ); 46 InspectorTest.showUISourceCode(uiSourceCode, didShowScriptSource );
47 } 47 }
48 48
49 function didShowScriptSource(sourceFrame) 49 function didShowScriptSource(sourceFrame)
50 { 50 {
51 dumpUISourceCodeContents(); 51 dumpUISourceCodeContents();
52 InspectorTest.addResult("Loading stylesheet with sourceURL:"); 52 InspectorTest.addResult("Loading stylesheet with sourceURL:");
53 InspectorTest.cssModel.addEventListener(SDK.CSSModel.Events.Styl eSheetAdded, stylesheetLoaded); 53 InspectorTest.cssModel.addEventListener(SDK.CSSModel.Events.Styl eSheetAdded, stylesheetLoaded);
54 InspectorTest.evaluateInPage("loadStylesheet()"); 54 InspectorTest.evaluateInPage("loadStylesheet()");
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 } 92 }
93 ]); 93 ]);
94 }; 94 };
95 </script> 95 </script>
96 </head> 96 </head>
97 <body onload="runTest()"> 97 <body onload="runTest()">
98 <div id="inspected"></div> 98 <div id="inspected"></div>
99 <p>Tests file system project mappings.</p> 99 <p>Tests file system project mappings.</p>
100 </body> 100 </body>
101 </html> 101 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/persistence/automapping-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698