Skip to content

Commit

Permalink
Fix tests for cc
Browse files Browse the repository at this point in the history
Add a test for VSCodeVim#2497
Change test for VSCodeVim#1285 when autoindent is enabled
  • Loading branch information
dqsully committed Jun 13, 2018
1 parent 205bccb commit 6a27171
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions test/mode/modeNormal.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1839,6 +1839,14 @@ suite('Mode Normal', () => {
endMode: ModeName.Insert,
});

newTest({
title: 'Resets cursor to indent end with cc',
start: ['{', ' | int a;'],
keysPressed: 'cc',
end: ['{', ' |'],
endMode: ModeName.Insert,
});

newTest({
title: "can handle 'cc' on empty line",
start: ['foo', '|', 'bar'],
Expand Down Expand Up @@ -1901,10 +1909,10 @@ suite('Mode Normal', () => {
});

newTest({
title: 'cc on whitespace-only line clears line',
title: 'cc on whitespace-only treats whitespace as indent',
start: ['| '],
keysPressed: 'cc',
end: ['|'],
end: [' |'],
});

newTest({
Expand Down

0 comments on commit 6a27171

Please sign in to comment.