1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-03-05 15:32:51 +01:00

Added tests for 'gv' and 'o' in visual mode

This commit is contained in:
Andrey Vlasovskikh 2014-05-08 16:59:11 +04:00
parent 2fc2f30055
commit 2d1b40f00c

View File

@ -539,4 +539,18 @@ public class MotionActionTest extends VimTestCase {
"three\n");
assertOffset(4);
}
// |v_gv|
public void testSwapVisualSelections() {
typeTextInFile(parseKeys("viw", "<Esc>", "0", "viw", "gv", "d"),
"foo <caret>bar\n");
myFixture.checkResult("foo \n");
}
// |v_o|
public void testSwapVisualSelectionEnds() {
typeTextInFile(parseKeys("v", "l", "o", "l", "d"),
"<caret>foo\n");
myFixture.checkResult("fo\n");
}
}