From 6086b54a061e0b9c4e95a4b2b56db8e09a0c4712 Mon Sep 17 00:00:00 2001 From: Ilya Kirillov Date: Wed, 14 Oct 2020 00:18:32 +0300 Subject: [PATCH] FIR IDE: do preliminary highlighting in completion tests considering exceptions --- .../completion/test/KotlinFixtureCompletionBaseTestCase.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/idea/idea-completion/tests/org/jetbrains/kotlin/idea/completion/test/KotlinFixtureCompletionBaseTestCase.kt b/idea/idea-completion/tests/org/jetbrains/kotlin/idea/completion/test/KotlinFixtureCompletionBaseTestCase.kt index a2ea1532d70..adb364b6042 100644 --- a/idea/idea-completion/tests/org/jetbrains/kotlin/idea/completion/test/KotlinFixtureCompletionBaseTestCase.kt +++ b/idea/idea-completion/tests/org/jetbrains/kotlin/idea/completion/test/KotlinFixtureCompletionBaseTestCase.kt @@ -33,10 +33,10 @@ abstract class KotlinFixtureCompletionBaseTestCase : KotlinLightCodeInsightFixtu withCustomCompilerOptions(fileText, project, module) { assertTrue("\"\" is missing in file \"$testPath\"", fileText.contains("")) - if (ExpectedCompletionUtils.shouldRunHighlightingBeforeCompletion(fileText)) { - myFixture.doHighlighting() - } executeTest { + if (ExpectedCompletionUtils.shouldRunHighlightingBeforeCompletion(fileText)) { + myFixture.doHighlighting() + } testCompletion( fileText, getPlatform(),