From 04de8d58a6bc8a5af52d39d0764972f496d10db0 Mon Sep 17 00:00:00 2001 From: Conrad Groth Date: Fri, 13 Sep 2019 21:44:06 +0530 Subject: Bug 546333 - [Win32] test_disposeItemNotTriggerSelection JUnit test failing. Windows notifies the parent Widget (the Tree) about the deleted item. This event is dispatched to the last control with the last event type, which causes an SelectionEvent for a TreeItem. This case was already covered for trees with the SWT.MULTI flag, but obviously also happens for trees with SWT.SINGLE flag. Change-Id: I66dfbf40041824cb15c40f2d6d26f08069e60751 Signed-off-by: Conrad Groth --- .../swt/tests/junit/Test_org_eclipse_swt_widgets_Tree.java | 8 -------- 1 file changed, 8 deletions(-) (limited to 'tests') diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Tree.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Tree.java index 3485390f67..48bfb9d6b9 100644 --- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Tree.java +++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Tree.java @@ -845,14 +845,6 @@ public void test_consistency_DragDetect () { @Test public void test_disposeItemNotTriggerSelection() { - if (SwtTestUtil.isWindows) { - // TODO Fix Windows failure. - if (SwtTestUtil.verbose) { - System.out - .println("Excluded test_disposeItemNotTriggerSelection(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_Tree)."); - } - return; - } Display display = shell.getDisplay(); shell.setLayout(new FillLayout()); Tree tree = new Tree (shell, SWT.BORDER); -- cgit v1.2.3