use of com.intellij.lang.javascript.inspections.JSUnusedLocalSymbolsInspection in project intellij-plugins by JetBrains.
the class FlexHighlightingTest method testOptimizeImportsFqn.
@JSTestOptions({ JSTestOption.WithJsSupportLoader, JSTestOption.WithFlexSdk, JSTestOption.WithUnusedImports })
public void testOptimizeImportsFqn() throws Exception {
enableInspectionTool(new JSUnusedLocalSymbolsInspection());
final String testName = getTestName(true);
doTestFor(true, (Runnable) null, testName + ".as", testName + "_2.as");
invokeNamedActionWithExpectedFileCheck(testName, "OptimizeImports", "as");
}
use of com.intellij.lang.javascript.inspections.JSUnusedLocalSymbolsInspection in project intellij-plugins by JetBrains.
the class FlexHighlightingTest method testOptimizeImports.
@JSTestOptions({ JSTestOption.WithJsSupportLoader, JSTestOption.WithFlexSdk, JSTestOption.WithUnusedImports })
public void testOptimizeImports() throws Exception {
enableInspectionTool(new JSUnusedLocalSymbolsInspection());
final String testName = getTestName(false);
doTestFor(true, (Runnable) null, testName + ".mxml", testName + "_2.as");
invokeNamedActionWithExpectedFileCheck(testName, "OptimizeImports", "mxml");
}
use of com.intellij.lang.javascript.inspections.JSUnusedLocalSymbolsInspection in project intellij-plugins by JetBrains.
the class ActionScriptHighlightingTest method testUnusedSymbols4_2.
public void testUnusedSymbols4_2() throws Exception {
enableInspectionTool(new JSUnusedLocalSymbolsInspection());
doSimpleHighlightingWithInvokeFixAndCheckResult("Remove unused namespace 'baz'");
}
use of com.intellij.lang.javascript.inspections.JSUnusedLocalSymbolsInspection in project intellij-plugins by JetBrains.
the class ActionScriptHighlightingTest method testUnusedParameterHasCreateFieldQuickFix_2.
public void testUnusedParameterHasCreateFieldQuickFix_2() throws Exception {
enableInspectionTool(new JSUnusedLocalSymbolsInspection());
doSimpleHighlightingWithInvokeFixAndCheckResult("Create Field '_bar'");
}
use of com.intellij.lang.javascript.inspections.JSUnusedLocalSymbolsInspection in project intellij-plugins by JetBrains.
the class ActionScriptHighlightingTest method testUnusedParameterHasAssignToFieldQuickFix_2.
public void testUnusedParameterHasAssignToFieldQuickFix_2() throws Exception {
enableInspectionTool(new JSUnusedLocalSymbolsInspection());
doSimpleHighlightingWithInvokeFixAndCheckResult("Assign parameter 'xxx' to field");
}
Aggregations