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() {