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

Side by Side Diff: LayoutTests/http/tests/inspector/stylesheet-source-mapping.html

Issue 13845021: DevTools: Bring Sass support from behind the experiment (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Separate settings for CSS and JS source maps Created 7 years, 5 months 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 | Annotate | Revision Log
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="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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698