test fixed

This commit is contained in:
Dmitry Avdeev
2012-04-16 17:04:20 +04:00
parent d1ec2cd6eb
commit fefac72660
@@ -130,7 +130,8 @@ class DaemonListeners implements Disposable {
@Override
public void caretPositionChanged(CaretEvent e) {
Editor editor = e.getEditor();
if (!editor.getComponent().isShowing() || !worthBothering(editor.getDocument(), editor.getProject())) {
if ((!editor.getComponent().isShowing() && !ApplicationManager.getApplication().isUnitTestMode()) ||
!worthBothering(editor.getDocument(), editor.getProject())) {
return; //no need to stop daemon if something happened in the console
}