From fefac72660440c563e7b6d459061e1063a7f80c7 Mon Sep 17 00:00:00 2001 From: Dmitry Avdeev Date: Mon, 16 Apr 2012 17:02:26 +0400 Subject: [PATCH] test fixed --- .../com/intellij/codeInsight/daemon/impl/DaemonListeners.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/DaemonListeners.java b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/DaemonListeners.java index 53791bb8dec8..92a23259e39b 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/DaemonListeners.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/DaemonListeners.java @@ -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 }