Cleanup 191 patchset logic (KTI-267)

This commit is contained in:
Yunir Salimzyanov
2020-06-04 19:42:45 +03:00
parent 820353ee0e
commit dce19b0ace
35 changed files with 1004 additions and 1230 deletions
@@ -5,23 +5,18 @@
package org.jetbrains.kotlin.idea.test
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.project.Project
import com.intellij.testFramework.LightPlatformCodeInsightTestCase
import com.intellij.util.ThrowableRunnable
// FIX ME WHEN BUNCH 191 REMOVED
abstract class KotlinLightPlatformCodeInsightTestCase : LightPlatformCodeInsightTestCase() {
protected inline val project_: Project get() = project
protected inline val editor_: Editor get() = editor
override fun setUp() {
super.setUp()
enableKotlinOfficialCodeStyle(project_)
enableKotlinOfficialCodeStyle(project)
}
override fun tearDown() = runAll(
ThrowableRunnable { disableKotlinOfficialCodeStyle(project_) },
ThrowableRunnable { disableKotlinOfficialCodeStyle(project) },
ThrowableRunnable { super.tearDown() },
)
}
@@ -16,7 +16,6 @@ import com.intellij.psi.PsiFile
import com.intellij.testFramework.LightIdeaTestCase
// FIX ME WHEN BUNCH as36 REMOVED
// FIX ME WHEN BUNCH 191 REMOVED
@Suppress("DEPRECATION")
@Deprecated("Use KotlinLightCodeInsightFixtureTestCase instead")
abstract class KotlinLightCodeInsightTestCase : com.intellij.testFramework.LightCodeInsightTestCase() {
@@ -32,7 +31,6 @@ abstract class KotlinLightCodeInsightTestCase : com.intellij.testFramework.Light
}
// FIX ME WHEN BUNCH as36 REMOVED
// FIX ME WHEN BUNCH 191 REMOVED
abstract class KotlinLightIdeaTestCase : LightIdeaTestCase() {
protected inline val project_: Project get() = project
protected inline val module_: Module get() = module
@@ -16,7 +16,6 @@ import com.intellij.psi.PsiFile
import com.intellij.testFramework.LightIdeaTestCase
// FIX ME WHEN BUNCH as36 REMOVED
// FIX ME WHEN BUNCH 191 REMOVED
@Suppress("DEPRECATION")
@Deprecated("Use KotlinLightCodeInsightFixtureTestCase instead")
abstract class KotlinLightCodeInsightTestCase : com.intellij.testFramework.LightCodeInsightTestCase() {
@@ -32,7 +31,6 @@ abstract class KotlinLightCodeInsightTestCase : com.intellij.testFramework.Light
}
// FIX ME WHEN BUNCH as36 REMOVED
// FIX ME WHEN BUNCH 191 REMOVED
abstract class KotlinLightIdeaTestCase : LightIdeaTestCase() {
protected inline val project_: Project get() = project
protected inline val module_: Module get() = module