OLD | NEW |
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 Loading... |
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 Loading... |
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> |
OLD | NEW |