-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Implement ; and , * Trying to fix travis ci agent (which does not handle clipboard tests well) * fix tslint errors * cleanup * more cleanup * even more cleanup * and more cleanup
- Loading branch information
1 parent
660df9a
commit 69ff80c
Showing
6 changed files
with
131 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
"use strict"; | ||
|
||
import { ModeHandler } from "../../src/mode/modeHandler"; | ||
import { setupWorkspace, cleanUpWorkspace, assertEqualLines } from '../testUtils'; | ||
import { getTestingFunctions } from '../testSimplifier'; | ||
|
||
suite("register", () => { | ||
let modeHandler: ModeHandler = new ModeHandler(); | ||
|
||
let { | ||
newTest, | ||
newTestOnly, | ||
} = getTestingFunctions(modeHandler); | ||
|
||
setup(async () => { | ||
await setupWorkspace(); | ||
}); | ||
|
||
suiteTeardown(cleanUpWorkspace); | ||
|
||
newTest({ | ||
title: "Can repeat f<character>", | ||
start: ['|abc abc abc'], | ||
keysPressed: 'fa;', | ||
end: ['abc abc |abc'], | ||
}); | ||
|
||
newTest({ | ||
title: "Can repeat reversed F<character>", | ||
start: ['|abc abc abc'], | ||
keysPressed: 'fa$,', | ||
end: ['abc abc |abc'], | ||
}); | ||
|
||
newTest({ | ||
title: "Can repeat t<character>", | ||
start: ['|abc abc abc'], | ||
keysPressed: 'tc;', | ||
end: ['abc a|bc abc'], | ||
}); | ||
|
||
newTest({ | ||
title: "Can repeat N times reversed t<character>", | ||
start: ['|abc abc abc abc'], | ||
keysPressed: 'tc$3,', | ||
end: ['abc| abc abc abc'], | ||
}); | ||
|
||
}); |