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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 InspectorTest.addResult("Adding file system mapping."); | 46 InspectorTest.addResult("Adding file system mapping."); |
47 InspectorTest.testFileSystemMapping.addFileMapping(fileSystemPath, "
http://localhost:8000/inspector/elements/styles/", "/"); | 47 InspectorTest.testFileSystemMapping.addFileMapping(fileSystemPath, "
http://localhost:8000/inspector/elements/styles/", "/"); |
48 manager.addFiles(fileSystemPath, files); | 48 manager.addFiles(fileSystemPath, files); |
49 var uiSourceCode = InspectorTest.testWorkspace.uiSourceCode(fileSyst
emProjectId, "foo.css"); | 49 var uiSourceCode = InspectorTest.testWorkspace.uiSourceCode(fileSyst
emProjectId, "foo.css"); |
50 InspectorTest.showUISourceCode(uiSourceCode, didShowScriptSource); | 50 InspectorTest.showUISourceCode(uiSourceCode, didShowScriptSource); |
51 | 51 |
52 function didShowScriptSource(sourceFrame) | 52 function didShowScriptSource(sourceFrame) |
53 { | 53 { |
54 dumpUISourceCodeContents(); | 54 dumpUISourceCodeContents(); |
55 InspectorTest.addResult("Loading stylesheet with sourceURL:"); | 55 InspectorTest.addResult("Loading stylesheet with sourceURL:"); |
56 WebInspector.cssModel.addEventListener(WebInspector.CSSStyleMode
l.Events.StyleSheetAdded, stylesheetLoaded); | 56 InspectorTest.cssModel.addEventListener(WebInspector.CSSStyleMod
el.Events.StyleSheetAdded, stylesheetLoaded); |
57 InspectorTest.evaluateInPage("loadStylesheet()"); | 57 InspectorTest.evaluateInPage("loadStylesheet()"); |
58 } | 58 } |
59 | 59 |
60 function stylesheetLoaded() | 60 function stylesheetLoaded() |
61 { | 61 { |
62 WebInspector.cssModel.removeEventListener(WebInspector.CSSStyleM
odel.Events.StyleSheetAdded, stylesheetLoaded); | 62 InspectorTest.cssModel.removeEventListener(WebInspector.CSSStyle
Model.Events.StyleSheetAdded, stylesheetLoaded); |
63 InspectorTest.addResult("Stylesheet loaded."); | 63 InspectorTest.addResult("Stylesheet loaded."); |
64 InspectorTest.selectNodeAndWaitForStyles("inspected", nodeSelect
ed); | 64 InspectorTest.selectNodeAndWaitForStyles("inspected", nodeSelect
ed); |
65 } | 65 } |
66 | 66 |
67 function nodeSelected() | 67 function nodeSelected() |
68 { | 68 { |
69 InspectorTest.addResult("Dumping matched rules:"); | 69 InspectorTest.addResult("Dumping matched rules:"); |
70 InspectorTest.dumpSelectedElementStyles(true); | 70 InspectorTest.dumpSelectedElementStyles(true); |
71 InspectorTest.addResult("Editing styles from elements panel:"); | 71 InspectorTest.addResult("Editing styles from elements panel:"); |
72 treeElement = InspectorTest.getMatchedStylePropertyTreeItem("col
or"); | 72 treeElement = InspectorTest.getMatchedStylePropertyTreeItem("col
or"); |
(...skipping 20 matching lines...) Expand all Loading... |
93 } | 93 } |
94 ]); | 94 ]); |
95 }; | 95 }; |
96 </script> | 96 </script> |
97 </head> | 97 </head> |
98 <body onload="runTest()"> | 98 <body onload="runTest()"> |
99 <div id="inspected"></div> | 99 <div id="inspected"></div> |
100 <p>Tests file system project mappings.</p> | 100 <p>Tests file system project mappings.</p> |
101 </body> | 101 </body> |
102 </html> | 102 </html> |
OLD | NEW |