Search in sources :

Example 1 with BadExpressionStatementJSInspection

use of com.sixrr.inspectjs.validity.BadExpressionStatementJSInspection in project intellij-plugins by JetBrains.

the class ActionScriptHighlightingTest method testImportInClass.

@JSTestOptions({ JSTestOption.WithUnusedImports })
public void testImportInClass() throws Exception {
    enableInspectionTool(new BadExpressionStatementJSInspection());
    doTestFor(true);
}
Also used : BadExpressionStatementJSInspection(com.sixrr.inspectjs.validity.BadExpressionStatementJSInspection)

Example 2 with BadExpressionStatementJSInspection

use of com.sixrr.inspectjs.validity.BadExpressionStatementJSInspection in project intellij-plugins by JetBrains.

the class FlexHighlightingTest method testStateReferences.

@JSTestOptions({ JSTestOption.WithJsSupportLoader, JSTestOption.WithFlexSdk })
public void testStateReferences() throws Exception {
    enableInspectionTool(new BadExpressionStatementJSInspection());
    defaultTest();
}
Also used : BadExpressionStatementJSInspection(com.sixrr.inspectjs.validity.BadExpressionStatementJSInspection)

Example 3 with BadExpressionStatementJSInspection

use of com.sixrr.inspectjs.validity.BadExpressionStatementJSInspection in project intellij-plugins by JetBrains.

the class ActionScriptHighlightingTest method testConditionalBlocks.

@JSTestOptions(JSTestOption.WithFlexFacet)
public void testConditionalBlocks() throws Exception {
    FlexTestUtils.modifyBuildConfiguration(myModule, bc -> bc.getCompilerOptions().setAllOptions(Collections.singletonMap("compiler.define", "CONFIG::debugging\t")));
    enableInspectionTool(new BadExpressionStatementJSInspection());
    defaultTest();
}
Also used : BadExpressionStatementJSInspection(com.sixrr.inspectjs.validity.BadExpressionStatementJSInspection)

Aggregations

BadExpressionStatementJSInspection (com.sixrr.inspectjs.validity.BadExpressionStatementJSInspection)3