use of com.intellij.codeInsight.daemon.GutterMark in project intellij-plugins by JetBrains.
the class FlexColorAnnotatorTest method findAppropriateRenderer.
@NotNull
private FlexMxmlColorAnnotator.MyRenderer findAppropriateRenderer(String extension) throws Exception {
GutterMark r = myFixture.findGutter(getTestName(false) + '.' + extension);
assertNotNull(r);
assertInstanceOf(r, FlexMxmlColorAnnotator.MyRenderer.class);
return (FlexMxmlColorAnnotator.MyRenderer) r;
}
use of com.intellij.codeInsight.daemon.GutterMark in project intellij-plugins by JetBrains.
the class FlexColorAnnotatorTest method testGutter5.
@JSTestOptions({ JSTestOption.WithFlexFacet, JSTestOption.WithCssSupportLoader })
public void testGutter5() throws Exception {
GutterMark r = myFixture.findGutter(getTestName(false) + '.' + "css");
assertNotNull(r);
assertInstanceOf(r.getIcon(), ColorIconCache.ColorIcon.class);
}
use of com.intellij.codeInsight.daemon.GutterMark in project intellij-plugins by JetBrains.
the class JspActionAnnotatorTest method checkGutterActionMethodTargetElements.
/**
* Checks whether the gutter target elements resolve to the given Action names.
*
* @param jspFile JSP file to check.
* @param expectedActionNames Names of the actions.
*/
private void checkGutterActionMethodTargetElements(@NonNls final String jspFile, @NonNls final String... expectedActionNames) {
final GutterMark gutterIconRenderer = myFixture.findGutter(jspFile);
assertNotNull(gutterIconRenderer);
AnnotatorTestUtils.checkGutterTargets(gutterIconRenderer, psiElement -> ((PsiMethod) psiElement).getName(), expectedActionNames);
}
Aggregations