undo doesn't suffer from autopopup intervention, again

This commit is contained in:
peter
2011-07-12 18:10:11 +02:00
parent a5e4d4472d
commit 47a6fc0a41
3 changed files with 31 additions and 14 deletions
@@ -873,5 +873,14 @@ class LiveComplete {
assert myFixture.editor.document.text.contains('ArrStoExce.')
}
public void testAutopopupTypingUndo() {
myFixture.configureByText "a.java", "class Foo {{ <caret> }}"
def editor;
edt { editor = FileEditorManager.getInstance(project).openFile(myFixture.file.virtualFile, false)[0] }
type 'aioobeeee'
edt { UndoManager.getInstance(project).undo(editor) }
assert !myFixture.editor.document.text.contains('aioo')
}
}