use of com.intellij.lang.javascript.JSTestOptions in project intellij-plugins by JetBrains.
the class ActionScriptStubsTest method testCreateVariable.
@JSTestOptions({ JSTestOption.WithLineMarkers })
public void testCreateVariable() throws Exception {
doTest(() -> {
final IntentionAction action = LightQuickFixTestCase.findActionWithText(LightQuickFixTestCase.getAvailableActions(myEditor, myFile), "Create Field 'myfield'");
CommandProcessor.getInstance().executeCommand(getProject(), () -> action.invoke(myProject, myEditor, myFile), "Create field", null);
checkResultByFile(getBasePath() + "/" + getTestName(false) + "_after.as");
}, getTestName(false) + ".as", "restparam.swc");
}
use of com.intellij.lang.javascript.JSTestOptions in project intellij-plugins by JetBrains.
the class FlexColorAnnotatorTest method testGutter4.
@JSTestOptions({ JSTestOption.WithFlexFacet, JSTestOption.WithCssSupportLoader })
public void testGutter4() throws Exception {
GutterMark r = myFixture.findGutter(getTestName(false) + '.' + "css");
assertNotNull(r);
assertInstanceOf(r.getIcon(), ColorIconCache.ColorIcon.class);
}
use of com.intellij.lang.javascript.JSTestOptions in project intellij-plugins by JetBrains.
the class FlexColorAnnotatorTest method testGutter5.
@JSTestOptions({ JSTestOption.WithFlexFacet, JSTestOption.WithCssSupportLoader })
public void testGutter5() throws Exception {
GutterMark r = myFixture.findGutter(getTestName(false) + '.' + "css");
assertNotNull(r);
assertInstanceOf(r.getIcon(), ColorIconCache.ColorIcon.class);
}
use of com.intellij.lang.javascript.JSTestOptions in project intellij-plugins by JetBrains.
the class FlexCssCompletionTest method testClassReferenceCompletion.
@JSTestOptions({ JSTestOption.WithJsSupportLoader, JSTestOption.WithFlexFacet })
public void testClassReferenceCompletion() throws Exception {
configureByFiles(null, FlexCompletionTest.BASE_PATH + getTestName(false) + ".css");
new CodeCompletionHandlerBase(CompletionType.BASIC).invokeCompletion(myProject, myEditor);
checkResultByFile(FlexCompletionTest.BASE_PATH + getTestName(false) + "_after.css");
}
use of com.intellij.lang.javascript.JSTestOptions in project intellij-plugins by JetBrains.
the class FlexCompletionTest method testCompletionOfMxmlInAnotherDirectory.
@JSTestOptions({ JSTestOption.WithJsSupportLoader, JSTestOption.WithFlexFacet })
public final void testCompletionOfMxmlInAnotherDirectory() throws Exception {
final String testName = getTestName(false);
doTestForFiles(new VirtualFile[] { getVirtualFile(BASE_PATH + testName + "/" + testName + ".as"), getVirtualFile(BASE_PATH + testName + "/aaa/" + testName + ".mxml") }, "", "as", new File(getTestDataPath() + getBasePath() + File.separatorChar + testName));
}
Aggregations