Search in sources :

Example 1 with JSUnusedGlobalSymbolsInspection

use of com.intellij.lang.javascript.inspections.JSUnusedGlobalSymbolsInspection in project intellij-plugins by JetBrains.

the class ActionScriptHighlightingTest method testUnusedGlobalSymbols5.

public void testUnusedGlobalSymbols5() throws Exception {
    enableInspectionTool(new JSUnusedGlobalSymbolsInspection());
    doTestFor(true, getTestName(false) + ".as");
}
Also used : JSUnusedGlobalSymbolsInspection(com.intellij.lang.javascript.inspections.JSUnusedGlobalSymbolsInspection)

Example 2 with JSUnusedGlobalSymbolsInspection

use of com.intellij.lang.javascript.inspections.JSUnusedGlobalSymbolsInspection in project intellij-plugins by JetBrains.

the class ActionScriptHighlightingTest method testUnusedVariableValues.

public void testUnusedVariableValues() throws Exception {
    enableInspectionTool(new JSUnusedAssignmentInspection());
    enableInspectionTool(new JSUnusedGlobalSymbolsInspection());
    defaultTest();
}
Also used : JSUnusedAssignmentInspection(com.intellij.lang.javascript.inspections.JSUnusedAssignmentInspection) JSUnusedGlobalSymbolsInspection(com.intellij.lang.javascript.inspections.JSUnusedGlobalSymbolsInspection)

Example 3 with JSUnusedGlobalSymbolsInspection

use of com.intellij.lang.javascript.inspections.JSUnusedGlobalSymbolsInspection in project intellij-plugins by JetBrains.

the class ActionScriptHighlightingTest method testUnusedGlobalSymbols4.

public void testUnusedGlobalSymbols4() throws Exception {
    enableInspectionTool(new JSUnusedGlobalSymbolsInspection());
    defaultTest();
}
Also used : JSUnusedGlobalSymbolsInspection(com.intellij.lang.javascript.inspections.JSUnusedGlobalSymbolsInspection)

Example 4 with JSUnusedGlobalSymbolsInspection

use of com.intellij.lang.javascript.inspections.JSUnusedGlobalSymbolsInspection in project intellij-plugins by JetBrains.

the class FlexHighlightingTest method testMxmlConstructor.

@JSTestOptions({ JSTestOption.WithFlexFacet })
public void testMxmlConstructor() throws Exception {
    enableInspectionTool(new JSUnusedGlobalSymbolsInspection());
    doTestFor(true, getTestName(false) + ".mxml");
}
Also used : JSUnusedGlobalSymbolsInspection(com.intellij.lang.javascript.inspections.JSUnusedGlobalSymbolsInspection)

Example 5 with JSUnusedGlobalSymbolsInspection

use of com.intellij.lang.javascript.inspections.JSUnusedGlobalSymbolsInspection in project intellij-plugins by JetBrains.

the class FlexUnitHighlightingTest method testNoUnusedHighlighting.

@JSTestOptions({ JSTestOption.WithFlexFacet, JSTestOption.WithFlexUnit4 })
public void testNoUnusedHighlighting() throws Exception {
    enableInspectionTool(new JSUnusedGlobalSymbolsInspection() {
    });
    doTest(getBasePath() + getTestName(false) + ".as", true, false, true);
}
Also used : JSUnusedGlobalSymbolsInspection(com.intellij.lang.javascript.inspections.JSUnusedGlobalSymbolsInspection) JSTestOptions(com.intellij.lang.javascript.JSTestOptions)

Aggregations

JSUnusedGlobalSymbolsInspection (com.intellij.lang.javascript.inspections.JSUnusedGlobalSymbolsInspection)6 JSTestOptions (com.intellij.lang.javascript.JSTestOptions)1 JSUnusedAssignmentInspection (com.intellij.lang.javascript.inspections.JSUnusedAssignmentInspection)1