junit/testng: ensure root is visible if after finish remains nothing else to show

This commit is contained in:
Anna Kozlova
2015-05-05 15:21:39 +02:00
parent e21e210eab
commit 203a2cea46
@@ -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;
}