9 <script src="../../inspector-test.js"></script>
10 <script src="../../elements-test.js"></script>
13 function addStylesheet()
15 var linkElement = document.createElement("link");
16 linkElement.rel = "stylesheet";
17 linkElement.href = "resources/selector-line-deprecated.css";
18 document.head.appendChild(linkElement);
23 WebInspector.cssModel.addEventListener(WebInspector.CSSStyleModel.Events.StyleSheetAdded, step1, this);
24 InspectorTest.evaluateInPage("addStylesheet()");
28 InspectorTest.addSniffer(WebInspector.CSSWorkspaceBinding.prototype, "pushSourceMapping", sourceMappingSniffer, true);
30 function sourceMappingSniffer(header, sourceMapping)
32 if (sourceMapping instanceof WebInspector.SASSSourceMapping) {
33 InspectorTest.selectNodeAndWaitForStyles("inspected", step2);
40 InspectorTest.dumpSelectedElementStyles(true);
41 InspectorTest.completeTest();
48 <body onload="runTest()">
50 Tests that selector line is computed correctly regardless of its start column. <a href="https://bugs.webkit.org/show_bug.cgi?id=110732">Bug 110732</a>.
54 <div id="inspected">Text</div>