1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-03-08 15:32:18 +01:00
This commit is contained in:
Vitalii Karavaev 2018-07-31 16:38:00 +03:00
parent c1b4671435
commit f3c66d131e

View File

@ -94,4 +94,29 @@ class MultipleCaretsTest : VimTestCase() {
val after = "qwe\n" + "rty\n" + "<caret>zxc\n" + "asd\n" + "fgh\n" + "<caret>zxc\n" + "zxc\n" + "vbn\n"
myFixture.checkResult(after)
}
fun testMoveTextBeforeCarets() {
val before = "qwe\n" + "rty\n" + "<caret>asd\n" + "fgh\n" + "z<caret>xc\n" + "vbn\n"
configureByText(before)
typeText(commandToKeys("m 1"))
val after = "qwe\n" + "<caret>asd\n" + "<caret>zxc\n" + "rty\n" + "fgh\n" + "vbn\n"
myFixture.checkResult(after)
}
fun testMoveTextAfterCarets() {
val before = "q<caret>we\n" + "rty\n" + "<caret>asd\n" + "fgh\n" + "zxc\n" + "vbn\n"
configureByText(before)
typeText(commandToKeys("m 4"))
val after = "rty\n" + "fgh\n" + "zxc\n" + "<caret>qwe\n" + "<caret>asd\n" + "vbn\n"
myFixture.checkResult(after)
}
fun testMoveTextBetweenCarets() {
val before = "q<caret>we\n" + "rty\n" + "<caret>asd\n" + "fgh\n" + "zxc\n" + "vbn\n"
configureByText(before)
typeText(commandToKeys("m 2"))
val after = "rty\n" + "<caret>qwe\n" + "<caret>asd\n" + "fgh\n" + "zxc\n" + "vbn\n"
myFixture.checkResult(after)
}
}