From f73016f2e7b6d9899383ec85cbaa7cb9f60cd59e Mon Sep 17 00:00:00 2001 From: "Egor.Ushakov" Date: Tue, 5 Aug 2014 17:45:35 +0400 Subject: [PATCH] fixed watches tests --- .../com/intellij/xdebugger/impl/frame/XWatchesViewImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/frame/XWatchesViewImpl.java b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/frame/XWatchesViewImpl.java index 14893c550424..6216c1312349 100644 --- a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/frame/XWatchesViewImpl.java +++ b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/frame/XWatchesViewImpl.java @@ -24,6 +24,7 @@ import com.intellij.ide.dnd.DnDNativeTarget; import com.intellij.openapi.CompositeDisposable; import com.intellij.openapi.Disposable; import com.intellij.openapi.actionSystem.*; +import com.intellij.openapi.application.ApplicationManager; import com.intellij.openapi.util.Disposer; import com.intellij.openapi.util.EmptyRunnable; import com.intellij.openapi.util.SystemInfo; @@ -246,7 +247,7 @@ public class XWatchesViewImpl implements DnDNativeTarget, XWatchesView, XDebugVi @Override public void processSessionEvent(@NotNull final SessionEvent event) { - if (getMainPanel().isShowing()) { + if (getMainPanel().isShowing() || ApplicationManager.getApplication().isUnitTestMode()) { myRebuildNeeded = false; } else {