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

Side by Side Diff: LayoutTests/http/tests/inspector/styles/selector-line-sourcemap-header-deprecated.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="../elements-test.js"></script> 4 <script src="../elements-test.js"></script>
5 <script> 5 <script>
6 6
7 function addStylesheet() 7 function addStylesheet()
8 { 8 {
9 var linkElement = document.createElement("link"); 9 var linkElement = document.createElement("link");
10 linkElement.rel = "stylesheet"; 10 linkElement.rel = "stylesheet";
11 linkElement.href = "resources/selector-line-sourcemap-header-deprecated.php" ; 11 linkElement.href = "resources/selector-line-sourcemap-header-deprecated.php" ;
12 document.head.appendChild(linkElement); 12 document.head.appendChild(linkElement);
13 } 13 }
14 14
15 function test() 15 function test()
16 { 16 {
17 WebInspector.experimentsSettings.sass.isEnabled = function() { return true; }
18 InspectorTest.evaluateInPage("addStylesheet()", step1); 17 InspectorTest.evaluateInPage("addStylesheet()", step1);
19 18
20 function step1() 19 function step1()
21 { 20 {
22 WebInspector.showPanel("elements"); 21 WebInspector.showPanel("elements");
23 InspectorTest.selectNodeAndWaitForStyles("inspected", step2); 22 InspectorTest.selectNodeAndWaitForStyles("inspected", step2);
24 } 23 }
25 24
26 function step2() 25 function step2()
27 { 26 {
28 InspectorTest.dumpSelectedElementStyles(true); 27 InspectorTest.dumpSelectedElementStyles(true);
29 InspectorTest.completeTest(); 28 InspectorTest.completeTest();
30 } 29 }
31 } 30 }
32 31
33 </script> 32 </script>
34 </head> 33 </head>
35 34
36 <body onload="runTest()"> 35 <body onload="runTest()">
37 <p> 36 <p>
38 Tests that sourcemap is applied correctly when specified by the respective HTTP header. 37 Tests that sourcemap is applied correctly when specified by the respective HTTP header.
39 </p> 38 </p>
40 39
41 <div id="container"> 40 <div id="container">
42 <div id="inspected">Text</div> 41 <div id="inspected">Text</div>
43 </div> 42 </div>
44 43
45 </body> 44 </body>
46 </html> 45 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698