| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <link rel="stylesheet" href="resources/selector-line-sourcemap-header.php" /> | 3 <link rel="stylesheet" href="resources/selector-line-sourcemap-header.php" /> |
| 4 <script src="../inspector-test.js"></script> | 4 <script src="../inspector-test.js"></script> |
| 5 <script src="../elements-test.js"></script> | 5 <script src="../elements-test.js"></script> |
| 6 <script> | 6 <script> |
| 7 | 7 |
| 8 function test() | 8 function test() |
| 9 { | 9 { |
| 10 WebInspector.experimentsSettings.sass.isEnabled = function() { return true;
} | 10 WebInspector.showPanel("elements"); |
| 11 InspectorTest.reloadPage(step1); | 11 InspectorTest.selectNodeAndWaitForStyles("inspected", step1); |
| 12 | 12 |
| 13 function step1() | 13 function step1() |
| 14 { | 14 { |
| 15 WebInspector.showPanel("elements"); | |
| 16 InspectorTest.selectNodeAndWaitForStyles("inspected", step2); | |
| 17 } | |
| 18 | |
| 19 function step2() | |
| 20 { | |
| 21 InspectorTest.dumpSelectedElementStyles(true); | 15 InspectorTest.dumpSelectedElementStyles(true); |
| 22 InspectorTest.completeTest(); | 16 InspectorTest.completeTest(); |
| 23 } | 17 } |
| 24 } | 18 } |
| 25 | 19 |
| 26 </script> | 20 </script> |
| 27 </head> | 21 </head> |
| 28 | 22 |
| 29 <body onload="runTest()"> | 23 <body onload="runTest()"> |
| 30 <p> | 24 <p> |
| 31 Tests that sourcemap is applied correctly when specified by the respective HTTP
header. | 25 Tests that sourcemap is applied correctly when specified by the respective HTTP
header. |
| 32 </p> | 26 </p> |
| 33 | 27 |
| 34 <div id="container"> | 28 <div id="container"> |
| 35 <div id="inspected">Text</div> | 29 <div id="inspected">Text</div> |
| 36 </div> | 30 </div> |
| 37 | 31 |
| 38 </body> | 32 </body> |
| 39 </html> | 33 </html> |
| OLD | NEW |