3 <script src="../inspector-test.js"></script>
4 <script src="../elements-test.js"></script>
7 function addStylesheet()
9 var linkElement = document.createElement("link");
10 linkElement.rel = "stylesheet";
11 linkElement.href = "resources/selector-line-sourcemap-header-deprecated.php";
12 document.head.appendChild(linkElement);
17 WebInspector.settings.cssSourceMapsEnabled.get = function() { return true; }
18 WebInspector.cssModel.addEventListener(WebInspector.CSSStyleModel.Events.StyleSheetAdded, step1, this);
19 InspectorTest.evaluateInPage("addStylesheet()");
23 WebInspector.showPanel("elements");
24 InspectorTest.selectNodeAndWaitForStyles("inspected", step2);
29 InspectorTest.dumpSelectedElementStyles(true);
30 InspectorTest.completeTest();
37 <body onload="runTest()">
39 Tests that sourcemap is applied correctly when specified by the respective HTTP header.
43 <div id="inspected">Text</div>