From 6e209f5cdac1ed1a85b7377cd3bf6d5b32b94169 Mon Sep 17 00:00:00 2001 From: "Egor.Ushakov" Date: Tue, 15 Sep 2015 14:35:46 +0300 Subject: [PATCH] preparing to delete FrameVariableTree --- .../ExecutionWithDebuggerToolsTestCase.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/java/testFramework/src/com/intellij/debugger/ExecutionWithDebuggerToolsTestCase.java b/java/testFramework/src/com/intellij/debugger/ExecutionWithDebuggerToolsTestCase.java index 5362879c9eca..ade8358e30dd 100644 --- a/java/testFramework/src/com/intellij/debugger/ExecutionWithDebuggerToolsTestCase.java +++ b/java/testFramework/src/com/intellij/debugger/ExecutionWithDebuggerToolsTestCase.java @@ -127,6 +127,20 @@ public abstract class ExecutionWithDebuggerToolsTestCase extends ExecutionTestCa myScriptRunnables.add(runnable); } + protected void doWhenPausedThenResume(final SuspendContextRunnable runnable) { + onBreakpoint(new SuspendContextRunnable() { + @Override + public void run(SuspendContextImpl suspendContext) throws Exception { + try { + runnable.run(suspendContext); + } + finally { + resume(suspendContext); + } + } + }); + } + protected void addDefaultBreakpointListener() { if (myPauseScriptListener == null) { final DebugProcessImpl debugProcess = getDebugProcess();