From 2d67f77f24105ec626b1e24efcac0334fec13177 Mon Sep 17 00:00:00 2001 From: anna Date: Fri, 4 Oct 2013 12:37:50 +0200 Subject: [PATCH] tests: ignore sub-selections in tree view (IDEA-114301) --- .../src/com/intellij/execution/testframework/TestTreeView.java | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/testRunner/src/com/intellij/execution/testframework/TestTreeView.java b/platform/testRunner/src/com/intellij/execution/testframework/TestTreeView.java index 9ebebb61ce7d..822a5ab379b3 100644 --- a/platform/testRunner/src/com/intellij/execution/testframework/TestTreeView.java +++ b/platform/testRunner/src/com/intellij/execution/testframework/TestTreeView.java @@ -92,6 +92,7 @@ public abstract class TestTreeView extends Tree implements DataProvider, CopyPro if (paths != null && paths.length > 1) { final List els = new ArrayList(paths.length); for (TreePath path : paths) { + if (isPathSelected(path.getParentPath())) continue; AbstractTestProxy test = getSelectedTest(path); if (test != null) { final PsiElement psiElement = (PsiElement)TestsUIUtil.getData(test, CommonDataKeys.PSI_ELEMENT.getName(), myModel);