1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-07-30 09:59:08 +02:00

Reset key mappings for each test

This commit is contained in:
Andrey Vlasovskikh 2014-04-02 01:54:26 +04:00
parent 0225975e20
commit 6ea255f125
2 changed files with 5 additions and 0 deletions
src/com/maddyhome/idea/vim/group
test/org/jetbrains/plugins/ideavim

View File

@ -130,6 +130,10 @@ public class KeyGroup {
return mapping;
}
public void resetKeyMappings() {
keyMappings.clear();
}
/**
* Returns the root of the key mapping for the given mapping mode
*

View File

@ -53,6 +53,7 @@ public abstract class VimTestCase extends UsefulTestCase {
myFixture.setTestDataPath(getTestDataPath());
KeyHandler.getInstance().fullReset(myFixture.getEditor());
Options.getInstance().resetAllOptions();
VimPlugin.getKey().resetKeyMappings();
}
protected String getTestDataPath() {