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

Side by Side Diff: LayoutTests/http/tests/inspector/styles/update-locations-on-filesystem-scss-load.html

Issue 13845021: DevTools: Bring Sass support from behind the experiment (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Comments addressed 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="../isolated-filesystem-test.js"></script> 4 <script src="../isolated-filesystem-test.js"></script>
5 <script src="../workspace-test.js"></script> 5 <script src="../workspace-test.js"></script>
6 <script> 6 <script>
7 function test() 7 function test()
8 { 8 {
9 var manager; 9 var manager;
10 var fileSystem; 10 var fileSystem;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 function dumpLiveLocation() 52 function dumpLiveLocation()
53 { 53 {
54 var uiLocation = liveLocation.uiLocation(); 54 var uiLocation = liveLocation.uiLocation();
55 if (!uiLocation) { 55 if (!uiLocation) {
56 InspectorTest.addResult("Null uiLocation"); 56 InspectorTest.addResult("Null uiLocation");
57 return; 57 return;
58 } 58 }
59 InspectorTest.addResult(uiLocation.uiSourceCode.url + ":" + uiLocation.l ineNumber + ":" + uiLocation.columnNumber); 59 InspectorTest.addResult(uiLocation.uiSourceCode.url + ":" + uiLocation.l ineNumber + ":" + uiLocation.columnNumber);
60 } 60 }
61 61
62 WebInspector.experimentsSettings.sass.isEnabled = function() { return true; }
63 InspectorTest.createWorkspace(); 62 InspectorTest.createWorkspace();
64 manager = InspectorTest.createIsolatedFileSystemManager(InspectorTest.testWo rkspace, InspectorTest.testFileSystemMapping); 63 manager = InspectorTest.createIsolatedFileSystemManager(InspectorTest.testWo rkspace, InspectorTest.testFileSystemMapping);
65 cssModel = new WebInspector.CSSStyleModel(InspectorTest.testWorkspace); 64 cssModel = new WebInspector.CSSStyleModel(InspectorTest.testWorkspace);
66 new WebInspector.CSSStyleSheetMapping(cssModel, InspectorTest.testWorkspace, InspectorTest.testNetworkWorkspaceProvider); 65 new WebInspector.CSSStyleSheetMapping(cssModel, InspectorTest.testWorkspace, InspectorTest.testNetworkWorkspaceProvider);
67 66
68 var resourcesURL = WebInspector.ParsedURL.completeURL(WebInspector.inspected PageURL, "resources/"); 67 var resourcesURL = WebInspector.ParsedURL.completeURL(WebInspector.inspected PageURL, "resources/");
69 var namePrefix = "update-locations-on-filesystem-scss-load." 68 var namePrefix = "update-locations-on-filesystem-scss-load."
70 var cssURL = resourcesURL + namePrefix + "css"; 69 var cssURL = resourcesURL + namePrefix + "css";
71 var scssURL = resourcesURL + namePrefix + "scss"; 70 var scssURL = resourcesURL + namePrefix + "scss";
72 var cssLocation = new WebInspector.CSSLocation(cssURL, 0, 1); 71 var cssLocation = new WebInspector.CSSLocation(cssURL, 0, 1);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 dumpLiveLocation(); 110 dumpLiveLocation();
112 InspectorTest.completeTest(); 111 InspectorTest.completeTest();
113 } 112 }
114 }; 113 };
115 </script> 114 </script>
116 </head> 115 </head>
117 <body onload="runTest()"> 116 <body onload="runTest()">
118 <p>Tests that stylesheet LiveLocations are updated when an SCSS file is added fr om the filesystem.</p> 117 <p>Tests that stylesheet LiveLocations are updated when an SCSS file is added fr om the filesystem.</p>
119 </body> 118 </body>
120 </html> 119 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698