From 7deff531549f98b0e28201bd11366f4d5ae48d5c Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Tue, 2 Oct 2018 15:55:45 +0200 Subject: [PATCH] indent raw strings to make more readable --- .../IdeDocumentHistoryFunctionalTest.kt | 57 +++++++++++-------- 1 file changed, 32 insertions(+), 25 deletions(-) diff --git a/platform/platform-tests/testSrc/com/intellij/openapi/fileEditor/IdeDocumentHistoryFunctionalTest.kt b/platform/platform-tests/testSrc/com/intellij/openapi/fileEditor/IdeDocumentHistoryFunctionalTest.kt index f69895df5e2f..6cfc30ca614a 100644 --- a/platform/platform-tests/testSrc/com/intellij/openapi/fileEditor/IdeDocumentHistoryFunctionalTest.kt +++ b/platform/platform-tests/testSrc/com/intellij/openapi/fileEditor/IdeDocumentHistoryFunctionalTest.kt @@ -6,80 +6,87 @@ import com.intellij.testFramework.EditorTestUtil internal class IdeDocumentHistoryFunctionalTest : HeavyFileEditorManagerTestCase() { fun testNavigateBetweenEditLocations() { - myFixture.configureByText("${getTestName(false)}.txt", - """line1 + myFixture.configureByText("${getTestName(false)}.txt", """ + line1 -line2 + line2 -line3""") + line3""".trimIndent()) myFixture.type(' ') moveCaret4LinesDown() myFixture.type(' ') moveCaret4LinesDown() EditorTestUtil.executeAction(editor, IdeActions.ACTION_GOTO_LAST_CHANGE) - myFixture.checkResult(""" line1 + myFixture.checkResult(""" + line1 -l ine2 + l ine2 -line3""") + line3""".trimIndent()) EditorTestUtil.executeAction(editor, IdeActions.ACTION_GOTO_LAST_CHANGE) - myFixture.checkResult(""" line1 + myFixture.checkResult(""" + line1 -l ine2 + l ine2 -line3""") + line3""".trimIndent()) EditorTestUtil.executeAction(editor, IdeActions.ACTION_GOTO_NEXT_CHANGE) - myFixture.checkResult(""" line1 + myFixture.checkResult(""" + line1 -l ine2 + l ine2 -line3""") + line3""".trimIndent()) EditorTestUtil.executeAction(editor, IdeActions.ACTION_GOTO_NEXT_CHANGE) - myFixture.checkResult(""" line1 + myFixture.checkResult(""" + line1 -l ine2 + l ine2 -line3""") + line3""".trimIndent()) } fun testForwardToANearPlace() { - myFixture.configureByText(getTestName(false) + ".java", - """class AA {} + myFixture.configureByText("${getTestName(false)}.java", """ + class AA {} -class BV extends AA {}""") + class BV extends AA {}""".trimIndent()) EditorTestUtil.executeAction(editor, IdeActions.ACTION_GOTO_DECLARATION) - myFixture.checkResult("""class AA {} + myFixture.checkResult(""" + class AA {} -class BV extends AA {}""") + class BV extends AA {}""".trimIndent()) EditorTestUtil.executeAction(editor, IdeActions.ACTION_GOTO_BACK) - myFixture.checkResult("""class AA {} + myFixture.checkResult(""" + class AA {} -class BV extends AA {}""") + class BV extends AA {}""".trimIndent()) EditorTestUtil.executeAction(editor, IdeActions.ACTION_GOTO_FORWARD) - myFixture.checkResult("""class AA {} + myFixture.checkResult(""" + class AA {} -class BV extends AA {}""") + class BV extends AA {}""".trimIndent()) } private fun moveCaret4LinesDown() {