Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / sources / css-outline-dialog.html
blob94e8c8cde421fcfc9af557b9d659f5d221b11156
1 <html>
2 <head>
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>
8 <script>
10 function test()
12 InspectorTest.showScriptSource("css-outline-column.css", onSourceShown);
13 var textEditor;
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();
28 return;
30 InspectorTest.addResult(String.sprintf("Cursor position: line %d, column %d", selection.startLine, selection.startColumn));
31 InspectorTest.completeTest();
35 </script>
37 </head>
39 <body onload="runTest()">
40 <p>Top-down test to verify css outline dialog.</p>
41 </body>
42 </html>