4 <link rel=
"stylesheet" href=
"resources/css-outline-column.css">
6 <script src=
"../../http/tests/inspector/inspector-test.js"></script>
7 <script src=
"../../http/tests/inspector/debugger-test.js"></script>
12 InspectorTest
.showScriptSource("css-outline-column.css", onSourceShown
);
14 function onSourceShown(sourceFrame
)
16 textEditor
= sourceFrame
.textEditor
;
17 InspectorTest
.addSniffer(WebInspector
.StyleSheetOutlineDialog
.prototype, "refresh", onDialogFulfilled
);
18 WebInspector
.panels
.sources
._sourcesView
._showOutlineDialog();
21 function onDialogFulfilled()
23 WebInspector
.Dialog
.currentInstance()._delegate
._delegate
.selectItem(1, "")
24 var selection
= textEditor
.selection();
25 if (!selection
.isEmpty()) {
26 InspectorTest
.addResult("ERROR: selection is not empty.");
27 InspectorTest
.completeTest();
30 InspectorTest
.addResult(String
.sprintf("Cursor position: line %d, column %d", selection
.startLine
, selection
.startColumn
));
31 InspectorTest
.completeTest();
39 <body onload=
"runTest()">
40 <p>Top-down test to verify css outline dialog.
</p>