Search in sources :

Example 1 with CssPropertyDescriptorStub

use of com.intellij.psi.css.descriptor.CssPropertyDescriptorStub in project intellij-plugins by JetBrains.

the class FlexDocumentationTest method testFlexCssPropertyMultiDocumentationInLookup.

@JSTestOptions({ JSTestOption.WithCssSupportLoader, JSTestOption.WithFlexFacet })
public void testFlexCssPropertyMultiDocumentationInLookup() throws Exception {
    DocumentationProvider cssDocProvider = new CssDocumentationProvider();
    String doc = testOne(cssDocProvider, getTestName(false) + ".css", new CssPropertyDescriptorStub("borderColor"));
    assertNotNull(doc);
    assertTrue("Container's borderColor property missing", doc.indexOf("Container") >= 0);
    assertTrue("Button's borderColor property missing", doc.indexOf("Button") >= 0);
    assertTrue("UIComponent's borderColor property missing", doc.indexOf("UIComponent") >= 0);
}
Also used : CssPropertyDescriptorStub(com.intellij.psi.css.descriptor.CssPropertyDescriptorStub) CssDocumentationProvider(com.intellij.psi.css.impl.util.CssDocumentationProvider) FlexDocumentationProvider(com.intellij.javascript.flex.FlexDocumentationProvider) DocumentationProvider(com.intellij.lang.documentation.DocumentationProvider) JSDocumentationProvider(com.intellij.lang.javascript.documentation.JSDocumentationProvider) CssDocumentationProvider(com.intellij.psi.css.impl.util.CssDocumentationProvider) JSTestOptions(com.intellij.lang.javascript.JSTestOptions)

Aggregations

FlexDocumentationProvider (com.intellij.javascript.flex.FlexDocumentationProvider)1 DocumentationProvider (com.intellij.lang.documentation.DocumentationProvider)1 JSTestOptions (com.intellij.lang.javascript.JSTestOptions)1 JSDocumentationProvider (com.intellij.lang.javascript.documentation.JSDocumentationProvider)1 CssPropertyDescriptorStub (com.intellij.psi.css.descriptor.CssPropertyDescriptorStub)1 CssDocumentationProvider (com.intellij.psi.css.impl.util.CssDocumentationProvider)1