mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
track running test: cleanup user selection (allow to track further) when newly started test equals to selection (IDEA-124030)
This commit is contained in:
@@ -60,13 +60,18 @@ class RunningTestTracker extends JUnitAdapter implements TestFrameworkPropertyLi
|
||||
public void onTestChanged(final TestEvent event) {
|
||||
if (event instanceof StateChangedEvent) {
|
||||
final TestProxy proxy = event.getSource();
|
||||
if (proxy == myLastRan && !isRunningState(proxy)) {
|
||||
if (myLastSelected == proxy){
|
||||
final boolean isRunning = isRunningState(proxy);
|
||||
if (isRunning) {
|
||||
if (proxy.isLeaf()) {
|
||||
myLastRan = proxy;
|
||||
}
|
||||
if (myLastSelected == proxy) {
|
||||
myLastSelected = null;
|
||||
}
|
||||
}
|
||||
else if (proxy == myLastRan) {
|
||||
myLastRan = null;
|
||||
}
|
||||
if (proxy.isLeaf() && isRunningState(proxy)) myLastRan = proxy;
|
||||
myTrackingPolicy.applyTo(proxy);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user