Select runtime with directive in test data file instead of test name in PsiChecker tests

This commit is contained in:
Ilya Gorbunov
2016-09-02 20:06:20 +03:00
parent d103657e07
commit 8f3e6f38ed
8 changed files with 43 additions and 12 deletions
@@ -128,7 +128,7 @@ abstract class KotlinLightCodeInsightFixtureTestCase : KotlinLightCodeInsightFix
protected fun isAllFilesPresentInTest(): Boolean = KotlinTestUtils.isAllFilesPresentTest(getTestName(false))
protected open fun fileName(): String
= getTestName(false) + ".kt"
= KotlinTestUtils.getTestDataFileName(this.javaClass, this.name) ?: (getTestName(false) + ".kt")
protected fun performNotWriteEditorAction(actionId: String): Boolean {
val dataContext = (myFixture.editor as EditorEx).dataContext