| 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="../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;
} | 17 WebInspector.experimentsSettings.sass.isEnabled = function() { return true;
} |
| 18 InspectorTest.addConsoleSniffer(step1); | 18 InspectorTest.evaluateInPage("addStylesheet()", step1); |
| 19 InspectorTest.evaluateInPage("addStylesheet()"); | |
| 20 | 19 |
| 21 function step1() | 20 function step1() |
| 22 { | 21 { |
| 23 WebInspector.showPanel("elements"); | 22 WebInspector.showPanel("elements"); |
| 24 InspectorTest.selectNodeAndWaitForStyles("inspected", step2); | 23 InspectorTest.selectNodeAndWaitForStyles("inspected", step2); |
| 25 } | 24 } |
| 26 | 25 |
| 27 function step2() | 26 function step2() |
| 28 { | 27 { |
| 29 InspectorTest.dumpSelectedElementStyles(true); | 28 InspectorTest.dumpSelectedElementStyles(true); |
| 30 InspectorTest.completeTest(); | 29 InspectorTest.completeTest(); |
| 31 } | 30 } |
| 32 } | 31 } |
| 33 | 32 |
| 34 </script> | 33 </script> |
| 35 </head> | 34 </head> |
| 36 | 35 |
| 37 <body onload="runTest()"> | 36 <body onload="runTest()"> |
| 38 <p> | 37 <p> |
| 39 Tests that sourcemap is applied correctly when specified by the respective HTTP
header. | 38 Tests that sourcemap is applied correctly when specified by the respective HTTP
header. |
| 40 </p> | 39 </p> |
| 41 | 40 |
| 42 <div id="container"> | 41 <div id="container"> |
| 43 <div id="inspected">Text</div> | 42 <div id="inspected">Text</div> |
| 44 </div> | 43 </div> |
| 45 | 44 |
| 46 </body> | 45 </body> |
| 47 </html> | 46 </html> |
| OLD | NEW |