Search in sources :

Example 1 with UnterminatedStatementJSInspection

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

the class FlexHighlightingTest method testEmbedInNodes.

@JSTestOptions({ JSTestOption.WithFlexSdk, JSTestOption.WithJsSupportLoader })
public void testEmbedInNodes() throws Exception {
    enableInspectionTool(new UnterminatedStatementJSInspection());
    final String testName = getTestName(false);
    final Collection<HighlightInfo> infoCollection = doTestFor(true, testName + ".mxml");
    findAndInvokeIntentionAction(infoCollection, "Terminate statement", myEditor, myFile);
    checkResultByFile(BASE_PATH + "/" + testName + "_after.mxml");
}
Also used : HighlightInfo(com.intellij.codeInsight.daemon.impl.HighlightInfo) UnterminatedStatementJSInspection(com.intellij.lang.javascript.inspections.UnterminatedStatementJSInspection)

Aggregations

HighlightInfo (com.intellij.codeInsight.daemon.impl.HighlightInfo)1 UnterminatedStatementJSInspection (com.intellij.lang.javascript.inspections.UnterminatedStatementJSInspection)1