From 3ad7e74ecb5c27a08d319fd20727f595966fd186 Mon Sep 17 00:00:00 2001 From: Dmitry Gridin Date: Mon, 20 Apr 2020 15:11:40 +0700 Subject: [PATCH] AbstractPerformanceTypingIndentationTest: fix compilation for 191 --- .../idea/perf/AbstractPerformanceTypingIndentationTest.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/idea/performanceTests/test/org/jetbrains/kotlin/idea/perf/AbstractPerformanceTypingIndentationTest.kt b/idea/performanceTests/test/org/jetbrains/kotlin/idea/perf/AbstractPerformanceTypingIndentationTest.kt index e8e53fa97be..6f0cb8b3dc4 100644 --- a/idea/performanceTests/test/org/jetbrains/kotlin/idea/perf/AbstractPerformanceTypingIndentationTest.kt +++ b/idea/performanceTests/test/org/jetbrains/kotlin/idea/perf/AbstractPerformanceTypingIndentationTest.kt @@ -33,7 +33,7 @@ abstract class AbstractPerformanceTypingIndentationTest : KotlinLightPlatformCod val originalFileText = FileUtil.loadFile(File(originFilePath), true) try { - val configurator = FormatSettingsUtil.createConfigurator(originalFileText, CodeStyle.getSettings(project)) + val configurator = FormatSettingsUtil.createConfigurator(originalFileText, CodeStyle.getSettings(project_)) configurator.configureSettings() performanceTest { @@ -46,8 +46,8 @@ abstract class AbstractPerformanceTypingIndentationTest : KotlinLightPlatformCod executeAction(IdeActions.ACTION_EDITOR_ENTER) } tearDown { - val actualTextWithCaret = StringBuilder(editor.document.text).insert( - editor.caretModel.offset, + val actualTextWithCaret = StringBuilder(editor_.document.text).insert( + editor_.caretModel.offset, EditorTestUtil.CARET_TAG ).toString() @@ -55,7 +55,7 @@ abstract class AbstractPerformanceTypingIndentationTest : KotlinLightPlatformCod } } } finally { - CodeStyle.getSettings(project).clearCodeStyleSettings() + CodeStyle.getSettings(project_).clearCodeStyleSettings() } }