Package com.intellij.javascript.testFramework.jasmine

Examples of com.intellij.javascript.testFramework.jasmine.JasmineFileStructure


    for (VirtualFile file : jsTestVirtualFiles) {
      PsiFile psiFile = PsiManager.getInstance(myProject).findFile(file);
      if (psiFile instanceof JSFile) {
        JSFile jsFile = (JSFile) psiFile;
        JasmineFileStructureBuilder builder = JasmineFileStructureBuilder.getInstance();
        JasmineFileStructure jasmineFileStructure = builder.fetchCachedTestFileStructure(jsFile);
        PsiElement element = jasmineFileStructure.findPsiElement(suiteNames, testName);
        if (element != null && element.isValid()) {
          return element;
        }
      }
    }
View Full Code Here


    }
    PsiFile psiFile = PsiManager.getInstance(project).findFile(file);
    if (psiFile instanceof JSFile) {
      JSFile jsFile = (JSFile) psiFile;
      JasmineFileStructureBuilder builder = JasmineFileStructureBuilder.getInstance();
      JasmineFileStructure jasmineFileStructure = builder.fetchCachedTestFileStructure(jsFile);
      Map<String, JasmineSuiteStructure> map = Maps.newHashMap();
      for (JasmineSuiteStructure suite : jasmineFileStructure.getSuites()) {
        visitSuite("", map, suite);
      }
      JasmineSuiteStructure suite = map.get(testCaseName);
      if (suite != null) {
        if (testMethodName == null) {
View Full Code Here

    );
  }

  @Override
  protected boolean isSuitableElement(@NotNull JSFile jsFile, @NotNull JSCallExpression callExpression) {
    JasmineFileStructure structure = JasmineFileStructureBuilder.getInstance().fetchCachedTestFileStructure(jsFile);
    return structure.containsCallExpression(callExpression);
  }
View Full Code Here

TOP

Related Classes of com.intellij.javascript.testFramework.jasmine.JasmineFileStructure

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.