[kotlin] Fix failing tests in AbstractFe10BindingLocalInspectionTest

Compiler diagnostics should not affect inspection tests, as it is done in FE10.

GitOrigin-RevId: d58fbdb90d467f05733d56c16b2d783db690ebb0
This commit is contained in:
Yan Zhulanow
2022-09-12 22:10:50 +09:00
committed by intellij-monorepo-bot
parent 85ecea0886
commit a57cc639b0
2 changed files with 5 additions and 3 deletions

View File

@@ -53,5 +53,6 @@
<orderEntry type="library" name="kotlinc.analysis-api-providers" level="project" />
<orderEntry type="library" name="kotlinc.analysis-project-structure" level="project" />
<orderEntry type="module" module-name="kotlin.code-insight.api" scope="TEST" />
<orderEntry type="module" module-name="kotlin.highlighting" scope="TEST" />
</component>
</module>

View File

@@ -5,6 +5,7 @@ import com.intellij.codeInsight.daemon.impl.HighlightInfo
import com.intellij.util.ThrowableRunnable
import org.jetbrains.kotlin.idea.codeinsight.api.classic.inspections.AbstractKotlinInspection
import org.jetbrains.kotlin.idea.fir.invalidateCaches
import org.jetbrains.kotlin.idea.highlighting.KotlinHighLevelDiagnosticHighlightingPass
import org.jetbrains.kotlin.idea.inspections.AbstractLocalInspectionTest
import org.jetbrains.kotlin.idea.test.runAll
import org.jetbrains.kotlin.test.utils.IgnoreTests
@@ -15,9 +16,9 @@ abstract class AbstractFe10BindingLocalInspectionTest : AbstractLocalInspectionT
override fun checkForUnexpectedErrors(fileText: String) {}
//override fun collectHighlightInfos(): List<HighlightInfo> {
// return KotlinHighLevelDiagnosticHighlightingPass.ignoreThisPassInTests { super.collectHighlightInfos() }
//}
override fun collectHighlightInfos(): List<HighlightInfo> {
return KotlinHighLevelDiagnosticHighlightingPass.ignoreThisPassInTests { super.collectHighlightInfos() }
}
override fun tearDown() {
runAll(