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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/elements/styles/edit-css-with-source-url.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 unified diff | Download patch
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 24 matching lines...) Expand all
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 = WebInspector.FileSystemWorkspaceBindin g.projectId(fileSystemPath); 44 var fileSystemProjectId = WebInspector.FileSystemWorkspaceBindin g.projectId(fileSystemPath);
45 uiSourceCode = WebInspector.workspace.uiSourceCode(fileSystemPro jectId, "foo.css"); 45 uiSourceCode = WebInspector.workspace.uiSourceCode(fileSystemPro jectId, "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(WebInspector.CSSStyleMod el.Events.StyleSheetAdded, stylesheetLoaded); 53 InspectorTest.cssModel.addEventListener(WebInspector.CSSStyleMod el.Events.StyleSheetAdded, stylesheetLoaded);
54 InspectorTest.evaluateInPage("loadStylesheet()"); 54 InspectorTest.evaluateInPage("loadStylesheet()");
55 } 55 }
(...skipping 36 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

Powered by Google App Engine
This is Rietveld 408576698