mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
junit/testng: ensure root is visible if after finish remains nothing else to show
This commit is contained in:
+2
-2
@@ -160,9 +160,9 @@ public class SMTestRunnerResultsForm extends TestResultsPanel
|
||||
@Override
|
||||
public Object[] getChildElements(Object element) {
|
||||
final Object[] children = super.getChildElements(element);
|
||||
if (element == myTestsRootNode && children.length > 0 &&
|
||||
if (element == myTestsRootNode &&
|
||||
myProperties.hideTreeRootIfNotEmpty()) {
|
||||
myTreeView.setRootVisible(false);
|
||||
myTreeView.setRootVisible(children.length == 0);
|
||||
}
|
||||
return children;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user