Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug529431_SetRegionTesting.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug529431_SetRegionTesting.java b/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug529431_SetRegionTesting.java
index 135afdc265..fab5f9bdf8 100644
--- a/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug529431_SetRegionTesting.java
+++ b/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug529431_SetRegionTesting.java
@@ -86,8 +86,11 @@ public class Bug529431_SetRegionTesting {
// define the shape of the button using setRegion
widget.setRegion(region);
- // Uncomment to test input handling
-// b2.addListener(SWT.Selection, e -> shell.close());
+ // test input handling
+ widget.addListener(SWT.Selection, e -> System.out.println("SWT.Selection sent"));
+ widget.addListener(SWT.MouseDown, e -> System.out.println("SWT.MouseDown sent"));
+ widget.addListener(SWT.MouseExit, e -> System.out.println("SWT.MouseExit sent"));
+ widget.addListener(SWT.MouseEnter, e -> System.out.println("SWT.MouseEnter sent"));
shell.setSize(200,200);
shell.open();

Back to the top