FIR IDE: do preliminary highlighting in completion tests considering exceptions

This commit is contained in:
Ilya Kirillov
2020-10-14 00:18:32 +03:00
parent b9cf9d8bc5
commit 6086b54a06
@@ -33,10 +33,10 @@ abstract class KotlinFixtureCompletionBaseTestCase : KotlinLightCodeInsightFixtu
withCustomCompilerOptions(fileText, project, module) {
assertTrue("\"<caret>\" is missing in file \"$testPath\"", fileText.contains("<caret>"))
if (ExpectedCompletionUtils.shouldRunHighlightingBeforeCompletion(fileText)) {
myFixture.doHighlighting()
}
executeTest {
if (ExpectedCompletionUtils.shouldRunHighlightingBeforeCompletion(fileText)) {
myFixture.doHighlighting()
}
testCompletion(
fileText,
getPlatform(),