File tree Expand file tree Collapse file tree
tests/org.eclipse.ui.tests.performance/src/org/eclipse/jface/tests/performance Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525import org .eclipse .test .performance .Performance ;
2626import org .eclipse .test .performance .PerformanceMeter ;
2727import org .eclipse .ui .tests .harness .util .CloseTestWindowsExtension ;
28+ import org .junit .jupiter .api .AfterEach ;
2829import org .junit .jupiter .api .Test ;
2930import org .junit .jupiter .api .TestInfo ;
3031import org .junit .jupiter .api .extension .RegisterExtension ;
@@ -40,6 +41,13 @@ public class ListPopulationTest {
4041
4142 List list ;
4243
44+ @ AfterEach
45+ public void tearDown () {
46+ if (list != null && !list .isDisposed ()) {
47+ list .getShell ().dispose ();
48+ }
49+ }
50+
4351 protected void openBrowser () {
4452 Display fDisplay = Display .getCurrent ();
4553 if (fDisplay == null ) {
@@ -152,4 +160,4 @@ private String[] getItems(int count) {
152160 }
153161
154162
155- }
163+ }
You can’t perform that action at this time.
0 commit comments