FIR IDE: do preliminary highlighting in completion tests considering exceptions
This commit is contained in:
+3
-3
@@ -33,10 +33,10 @@ abstract class KotlinFixtureCompletionBaseTestCase : KotlinLightCodeInsightFixtu
|
|||||||
withCustomCompilerOptions(fileText, project, module) {
|
withCustomCompilerOptions(fileText, project, module) {
|
||||||
assertTrue("\"<caret>\" is missing in file \"$testPath\"", fileText.contains("<caret>"))
|
assertTrue("\"<caret>\" is missing in file \"$testPath\"", fileText.contains("<caret>"))
|
||||||
|
|
||||||
if (ExpectedCompletionUtils.shouldRunHighlightingBeforeCompletion(fileText)) {
|
|
||||||
myFixture.doHighlighting()
|
|
||||||
}
|
|
||||||
executeTest {
|
executeTest {
|
||||||
|
if (ExpectedCompletionUtils.shouldRunHighlightingBeforeCompletion(fileText)) {
|
||||||
|
myFixture.doHighlighting()
|
||||||
|
}
|
||||||
testCompletion(
|
testCompletion(
|
||||||
fileText,
|
fileText,
|
||||||
getPlatform(),
|
getPlatform(),
|
||||||
|
|||||||
Reference in New Issue
Block a user