use of com.intellij.lang.javascript.inspections.JSUnusedLocalSymbolsInspection in project intellij-plugins by JetBrains.
the class ActionScriptHighlightingTest method testUsingFunctionDeclarations.
public void testUsingFunctionDeclarations() throws Exception {
enableInspectionTool(new JSUnusedLocalSymbolsInspection());
defaultTest();
}
use of com.intellij.lang.javascript.inspections.JSUnusedLocalSymbolsInspection in project intellij-plugins by JetBrains.
the class ActionScriptHighlightingTest method testUnusedParameterHasCreateFieldQuickFix_4.
public void testUnusedParameterHasCreateFieldQuickFix_4() throws Exception {
enableInspectionTool(new JSUnusedLocalSymbolsInspection());
doSimpleHighlightingWithInvokeFixAndCheckResult("Create Field '_value'");
}
use of com.intellij.lang.javascript.inspections.JSUnusedLocalSymbolsInspection in project intellij-plugins by JetBrains.
the class ActionScriptHighlightingTest method testUnusedParameterHasAssignToFieldQuickFix.
public void testUnusedParameterHasAssignToFieldQuickFix() throws Exception {
enableInspectionTool(new JSUnusedLocalSymbolsInspection());
doSimpleHighlightingWithInvokeFixAndCheckResult("Assign parameter 'xxx' to field");
}
use of com.intellij.lang.javascript.inspections.JSUnusedLocalSymbolsInspection in project intellij-plugins by JetBrains.
the class ActionScriptHighlightingTest method testOptimizeImports.
@JSTestOptions({ JSTestOption.WithJsSupportLoader, JSTestOption.WithFlexSdk, JSTestOption.WithUnusedImports })
public void testOptimizeImports() throws Exception {
enableInspectionTool(new JSUnusedLocalSymbolsInspection());
final String testName = getTestName(false);
Collection<HighlightInfo> infos = doTestFor(true, (Runnable) null, testName + ".js2", testName + "_2.js2");
findAndInvokeIntentionAction(infos, "Optimize imports", myEditor, myFile);
checkResultByFile(BASE_PATH + getTestName(false) + "_after.js2");
}
Aggregations