mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
Fix yaml testdata retrieval (because of failing ruby tests)
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
package org.jetbrains.yaml.lexer;
|
||||
|
||||
import com.intellij.lexer.Lexer;
|
||||
import com.intellij.openapi.application.PluginPathManager;
|
||||
import com.intellij.openapi.application.PathManager;
|
||||
import com.intellij.openapi.application.ex.PathManagerEx;
|
||||
import com.intellij.testFramework.LexerTestCase;
|
||||
|
||||
public class YAMLLexerTest extends LexerTestCase {
|
||||
@@ -12,7 +13,8 @@ public class YAMLLexerTest extends LexerTestCase {
|
||||
|
||||
@Override
|
||||
protected String getDirPath() {
|
||||
return PluginPathManager.getPluginHomePathRelative("yaml") + "/testSrc/org/jetbrains/yaml/lexer/data";
|
||||
return (PathManagerEx.getCommunityHomePath() + "/plugins/yaml/testSrc/org/jetbrains/yaml/lexer/data/")
|
||||
.substring(PathManager.getHomePath().length());
|
||||
}
|
||||
|
||||
public void test2docs() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package org.jetbrains.yaml.parser;
|
||||
|
||||
import com.intellij.openapi.application.PluginPathManager;
|
||||
import com.intellij.openapi.application.ex.PathManagerEx;
|
||||
import com.intellij.testFramework.ParsingTestCase;
|
||||
import org.jetbrains.yaml.YAMLParserDefinition;
|
||||
|
||||
@@ -16,7 +16,7 @@ public class YAMLParserTest extends ParsingTestCase {
|
||||
}
|
||||
|
||||
protected String getTestDataPath() {
|
||||
return PluginPathManager.getPluginHomePath("yaml") + "/testSrc/org/jetbrains/yaml/parser/data/";
|
||||
return PathManagerEx.getCommunityHomePath() + "/plugins/yaml/testSrc/org/jetbrains/yaml/parser/data/";
|
||||
}
|
||||
|
||||
public void test2docs() throws Throwable {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package org.jetbrains.yaml.psi;
|
||||
|
||||
import com.intellij.openapi.application.PluginPathManager;
|
||||
import com.intellij.openapi.application.ex.PathManagerEx;
|
||||
import com.intellij.psi.PsiElement;
|
||||
import com.intellij.psi.util.PsiTreeUtil;
|
||||
import com.intellij.testFramework.fixtures.LightPlatformCodeInsightFixtureTestCase;
|
||||
@@ -9,7 +9,7 @@ import org.jetbrains.yaml.YAMLParserDefinition;
|
||||
public class YAMLScalarContentTest extends LightPlatformCodeInsightFixtureTestCase {
|
||||
@Override
|
||||
protected String getTestDataPath() {
|
||||
return PluginPathManager.getPluginHomePath("yaml") + "/testSrc/org/jetbrains/yaml/psi/data/";
|
||||
return PathManagerEx.getCommunityHomePath() + "/plugins/yaml/testSrc/org/jetbrains/yaml/psi/data/";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
package org.jetbrains.yaml.psiModification;
|
||||
|
||||
import com.intellij.openapi.application.PluginPathManager;
|
||||
import com.intellij.openapi.application.ex.PathManagerEx;
|
||||
import com.intellij.openapi.command.WriteCommandAction;
|
||||
import com.intellij.psi.PsiElement;
|
||||
import com.intellij.psi.util.PsiTreeUtil;
|
||||
@@ -14,7 +14,7 @@ import org.jetbrains.yaml.psi.YAMLMapping;
|
||||
public class YAMLMappingModificationTest extends LightPlatformCodeInsightFixtureTestCase {
|
||||
@Override
|
||||
protected String getTestDataPath() {
|
||||
return PluginPathManager.getPluginHomePath("yaml") + "/testSrc/org/jetbrains/yaml/psiModification/data/";
|
||||
return PathManagerEx.getCommunityHomePath() + "/plugins/yaml/testSrc/org/jetbrains/yaml/psiModification/data/";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user