use of com.intellij.psi.css.inspections.CssUnknownPropertyInspection in project intellij-plugins by JetBrains.
the class FlexHighlightingTest method testFontFaceProperties.
public void testFontFaceProperties() throws Throwable {
final Sdk sdk = FlexTestUtils.createSdk(FlexTestUtils.getPathToCompleteFlexSdk("4.5"), null, true);
WriteAction.run(() -> FlexTestUtils.modifyBuildConfiguration(myModule, bc -> FlexTestUtils.setSdk(bc, sdk)));
enableInspectionTool(new CssUnknownPropertyInspection());
defaultTest();
}
use of com.intellij.psi.css.inspections.CssUnknownPropertyInspection in project intellij-plugins by JetBrains.
the class FlexHighlightingTest method testCssDialectMappings.
public void testCssDialectMappings() throws Exception {
enableInspectionTool(new CssInvalidPropertyValueInspection());
enableInspectionTool(new CssUnknownPropertyInspection());
try {
CssDialectMappings.getInstance(getProject()).setMapping(null, CssDialect.CLASSIC);
doTestFor(true, getTestName(false) + ".css");
} finally {
CssDialectMappings.getInstance(getProject()).cleanupForNextTest();
}
}
use of com.intellij.psi.css.inspections.CssUnknownPropertyInspection in project intellij-plugins by JetBrains.
the class FlexHighlightingTest method testSwitchToFlexCssQuickFix2.
@JSTestOptions({ JSTestOption.WithCssSupportLoader, JSTestOption.WithFlexFacet })
public void testSwitchToFlexCssQuickFix2() throws Exception {
try {
CssDialectMappings.getInstance(getProject()).setMapping(null, CssDialect.CLASSIC);
enableInspectionTool(new CssUnknownPropertyInspection());
doHighlightingWithInvokeFixAndCheckResult(CssBundle.message("switch.to.css.dialect.quickfix.name", FlexCSSDialect.getInstance().getDisplayName()), "css");
} finally {
CssDialectMappings.getInstance(getProject()).cleanupForNextTest();
}
}
use of com.intellij.psi.css.inspections.CssUnknownPropertyInspection in project intellij-plugins by JetBrains.
the class FlexHighlightingTest method testHtmlCss.
@JSTestOptions({ JSTestOption.WithCssSupportLoader, JSTestOption.WithFlexFacet })
public void testHtmlCss() throws Exception {
enableInspectionTool(new CssInvalidPropertyValueInspection());
enableInspectionTool(new CssInvalidHtmlTagReferenceInspection());
enableInspectionTool(new CssUnknownPropertyInspection());
doTestFor(true, getTestName(false) + ".html");
}
use of com.intellij.psi.css.inspections.CssUnknownPropertyInspection in project intellij-plugins by JetBrains.
the class FlexHighlightingTest method testSwitchToClassicCssQuickFix2.
@JSTestOptions({ JSTestOption.WithCssSupportLoader, JSTestOption.WithFlexFacet })
public void testSwitchToClassicCssQuickFix2() throws Exception {
enableInspectionTool(new CssUnknownPropertyInspection());
doHighlightingWithInvokeFixAndCheckResult(CssBundle.message("switch.to.css.dialect.quickfix.name", CssDialect.CLASSIC.getDisplayName()), "css");
}
Aggregations