use of com.intellij.lang.javascript.JSTestOptions in project intellij-plugins by JetBrains.
the class FlexColorAnnotatorTest method testIdea94474.
@JSTestOptions(JSTestOption.WithFlexSdk)
public void testIdea94474() throws Exception {
GutterMark r = myFixture.findGutter(getTestName(false) + '.' + "css");
assertNull(r);
}
use of com.intellij.lang.javascript.JSTestOptions in project intellij-plugins by JetBrains.
the class FlexUnitCompletionTest method testCustomRunner.
@JSTestOptions({ WithFlexSdk })
public void testCustomRunner() throws Exception {
VirtualFile[] files = new VirtualFile[] { getVirtualFile(getBasePath() + getTestName(false) + ".as"), getVirtualFile(getBasePath() + "mypackage/FooRunner.as") };
doTestForFiles(files, "", "as", new File(getTestDataPath() + getBasePath()));
}
use of com.intellij.lang.javascript.JSTestOptions 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);
}
use of com.intellij.lang.javascript.JSTestOptions in project intellij-plugins by JetBrains.
the class ResolveExternalInlineStyleSourceActionTest method testFindComponent.
@JSTestOptions({ JSTestOption.WithCssSupportLoader, JSTestOption.WithJsSupportLoader, JSTestOption.WithGumboSdk, JSTestOption.WithFlexFacet })
public void testFindComponent() throws Exception {
Map<String, String> styles = new THashMap<>();
styles.put("left", "10");
styles.put("right", "10");
ResolveExternalInlineStyleSourceAction action = new ResolveExternalInlineStyleSourceAction("innerComponentInDeclarations", "spark.components.Button", "left", styles, myModule);
PsiElement element = (PsiElement) action.find();
assertNotNull(element);
assertEquals(1717, element.getTextOffset());
}
use of com.intellij.lang.javascript.JSTestOptions in project intellij-plugins by JetBrains.
the class ResolveExternalInlineStyleSourceActionTest method testFindComponent2.
@JSTestOptions({ JSTestOption.WithCssSupportLoader, JSTestOption.WithJsSupportLoader, JSTestOption.WithGumboSdk, JSTestOption.WithFlexFacet })
public void testFindComponent2() throws Exception {
Map<String, String> styles = new THashMap<>();
styles.put("left", "10");
styles.put("right", "10");
styles.put("top", "4");
ResolveExternalInlineStyleSourceAction action = new ResolveExternalInlineStyleSourceAction("innerComponentInDeclarations", "spark.components.Button", "left", styles, myModule);
PsiElement element = (PsiElement) action.find();
assertNotNull(element);
assertEquals(1808, element.getTextOffset());
}
Aggregations