| 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="workspace-test.js"></script> | 5 <script src="workspace-test.js"></script> |
| 6 | 6 |
| 7 <script> | 7 <script> |
| 8 | 8 |
| 9 function test() | 9 function test() |
| 10 { | 10 { |
| 11 WebInspector.experimentsSettings.sass.isEnabled = function() { return true;
} | |
| 12 InspectorTest.createWorkspace(); | 11 InspectorTest.createWorkspace(); |
| 13 var cssModel = new WebInspector.CSSStyleModel(InspectorTest.testWorkspace); | 12 var cssModel = new WebInspector.CSSStyleModel(InspectorTest.testWorkspace); |
| 14 var mapping = new WebInspector.CSSStyleSheetMapping(cssModel, InspectorTest.
testWorkspace, InspectorTest.testNetworkWorkspaceProvider); | 13 var mapping = new WebInspector.CSSStyleSheetMapping(cssModel, InspectorTest.
testWorkspace, InspectorTest.testNetworkWorkspaceProvider); |
| 15 | 14 |
| 16 InspectorTest.waitForWorkspaceUISourceCodeAddedEvent(cssUISourceCodeAdded); | 15 InspectorTest.waitForWorkspaceUISourceCodeAddedEvent(cssUISourceCodeAdded); |
| 17 const styleSheetURL = "http://localhost:8000/inspector/resources/example.css
"; | 16 const styleSheetURL = "http://localhost:8000/inspector/resources/example.css
"; |
| 18 const sourceMapURL = "example.css.map"; | 17 const sourceMapURL = "example.css.map"; |
| 19 InspectorTest.addMockUISourceCodeToWorkspace(styleSheetURL, WebInspector.res
ourceTypes.Stylesheet, ""); | 18 InspectorTest.addMockUISourceCodeToWorkspace(styleSheetURL, WebInspector.res
ourceTypes.Stylesheet, ""); |
| 20 | 19 |
| 21 cssModel._styleSheetAdded(createMockStyleSheetHeader(styleSheetURL, sourceMa
pURL)); | 20 cssModel._styleSheetAdded(createMockStyleSheetHeader(styleSheetURL, sourceMa
pURL)); |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 } | 89 } |
| 91 | 90 |
| 92 </script> | 91 </script> |
| 93 | 92 |
| 94 </head> | 93 </head> |
| 95 | 94 |
| 96 <body onload="runTest()"> | 95 <body onload="runTest()"> |
| 97 <p>Tests SourceMap and StyleSheetMapping.</p> | 96 <p>Tests SourceMap and StyleSheetMapping.</p> |
| 98 </body> | 97 </body> |
| 99 </html> | 98 </html> |
| OLD | NEW |