use of com.intellij.lang.javascript.JSTestOptions in project intellij-plugins by JetBrains.
the class FlexCompletionTest method testCompletionOfPackageLocalClass.
@JSTestOptions({ JSTestOption.WithJsSupportLoader, JSTestOption.WithFlexFacet })
public final void testCompletionOfPackageLocalClass() throws Exception {
final String testName = getTestName(false);
doTestForFiles(new VirtualFile[] { getVirtualFile(BASE_PATH + testName + "/aaa/" + testName + ".mxml"), getVirtualFile(BASE_PATH + testName + "/aaa/" + testName + ".as") }, "", "mxml", new File(getTestDataPath() + getBasePath() + File.separatorChar + testName));
}
use of com.intellij.lang.javascript.JSTestOptions in project intellij-plugins by JetBrains.
the class FlexCompletionTest method testMxmlFieldReference.
@JSTestOptions({ JSTestOption.WithFlexFacet })
public final void testMxmlFieldReference() throws Exception {
final String testName = getTestName(false);
doTestForFiles(new VirtualFile[] { getVirtualFile(BASE_PATH + testName + "/aaa/" + testName + ".mxml") }, "", "mxml", new File(getTestDataPath() + getBasePath() + File.separatorChar + testName));
}
use of com.intellij.lang.javascript.JSTestOptions in project intellij-plugins by JetBrains.
the class FlexUnitHighlightingTest method testNoUnusedHighlighting.
@JSTestOptions({ JSTestOption.WithFlexFacet, JSTestOption.WithFlexUnit4 })
public void testNoUnusedHighlighting() throws Exception {
enableInspectionTool(new JSUnusedGlobalSymbolsInspection() {
});
doTest(getBasePath() + getTestName(false) + ".as", true, false, true);
}
use of com.intellij.lang.javascript.JSTestOptions in project intellij-plugins by JetBrains.
the class FlexCompletionTest method testAssetFromAnotherSourceRoot.
@JSTestOptions({ JSTestOption.WithJsSupportLoader, JSTestOption.WithFlexFacet })
public void testAssetFromAnotherSourceRoot() throws Exception {
final String testName = getTestName(false);
final VirtualFile secondSourceRoot = getVirtualFile(BASE_PATH + testName);
PsiTestUtil.addSourceRoot(myModule, secondSourceRoot);
withNoAbsoluteReferences(() -> doTest("", "mxml"));
}
use of com.intellij.lang.javascript.JSTestOptions in project intellij-plugins by JetBrains.
the class FlexCompletionTest method testMxmlFromOtherPackage.
@JSTestOptions({ JSTestOption.WithGumboSdk })
public void testMxmlFromOtherPackage() throws Exception {
final String testName = getTestName(false);
doTestForFiles(new VirtualFile[] { getVirtualFile(getBasePath() + testName + ".mxml"), getVirtualFile(getBasePath() + testName + "/" + "CustomButton.mxml") }, "", "mxml", new File(getTestDataPath() + getBasePath()));
}
Aggregations