Search in sources :

Example 1 with JSMethodCanBeStaticInspection

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

the class ActionScriptHighlightingTest method testMethodCanBeStatic.

public void testMethodCanBeStatic() throws Exception {
    enableInspectionTool(new JSMethodCanBeStaticInspection());
    doSimpleHighlightingWithInvokeFixAndCheckResult("Make 'static'");
}
Also used : JSMethodCanBeStaticInspection(com.intellij.lang.javascript.inspections.JSMethodCanBeStaticInspection)

Example 2 with JSMethodCanBeStaticInspection

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

the class FlexUnitHighlightingTest method testMethodInSuite2.

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

Example 3 with JSMethodCanBeStaticInspection

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

the class ActionScriptHighlightingTest method testMethodCanBeStaticImplicitVars.

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

Example 4 with JSMethodCanBeStaticInspection

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

the class ActionScriptHighlightingTest method testMethodCanBeStatic4.

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

Example 5 with JSMethodCanBeStaticInspection

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

the class ActionScriptHighlightingTest method testMethodCanBeStatic3.

public void testMethodCanBeStatic3() throws Exception {
    enableInspectionTool(new JSMethodCanBeStaticInspection());
    doSimpleHighlightingWithInvokeFixAndCheckResult("Make 'static'");
}
Also used : JSMethodCanBeStaticInspection(com.intellij.lang.javascript.inspections.JSMethodCanBeStaticInspection)

Aggregations

JSMethodCanBeStaticInspection (com.intellij.lang.javascript.inspections.JSMethodCanBeStaticInspection)8 JSTestOptions (com.intellij.lang.javascript.JSTestOptions)1