use of com.intellij.lang.javascript.inspections.actionscript.JSUntypedDeclarationInspection in project intellij-plugins by JetBrains.
the class FlexHighlightingTest method testAddTypeToDeclarationAmbiguous.
public void testAddTypeToDeclarationAmbiguous() throws Exception {
enableInspectionTool(new JSUntypedDeclarationInspection());
doHighlightingWithInvokeFixAndCheckResult("Add Type to Declaration", "as", getTestName(false) + ".as", getTestName(false) + "_2.as");
}
use of com.intellij.lang.javascript.inspections.actionscript.JSUntypedDeclarationInspection in project intellij-plugins by JetBrains.
the class ActionScriptHighlightingTest method testRestParameterIsNotMarkedAsHavingNoType.
public void testRestParameterIsNotMarkedAsHavingNoType() throws Exception {
enableInspectionTool(new JSUntypedDeclarationInspection());
doHighlightingWithInvokeFixAndCheckResult("Remove type reference", "js2");
}
use of com.intellij.lang.javascript.inspections.actionscript.JSUntypedDeclarationInspection in project intellij-plugins by JetBrains.
the class ActionScriptDaemonAnalyzerTestCase method runUntypedDeclarationInspectionTestWithFix.
protected void runUntypedDeclarationInspectionTestWithFix(final String fileName, final String[] files, String ext) throws Exception {
try {
enableInspectionTool(new JSUntypedDeclarationInspection());
Collection<HighlightInfo> infos = doTestFor(true, files);
findAndInvokeIntentionAction(infos, "Add Type to Declaration", myEditor, myFile);
checkResultByFile(getBasePath() + "/" + fileName + "_after." + ext);
} finally {
LookupManager.getInstance(myProject).hideActiveLookup();
}
}
Aggregations