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/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Shell.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Shell.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Shell.java
index 87a7c4fa4f..1d1cd096dc 100644
--- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Shell.java
+++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Shell.java
@@ -718,6 +718,22 @@ public void test_setSizeII() {
}
+@Test
+public void test_setSizeCustomResize() {
+ /*
+ * Bug 319612: test the case where Shells with SWT.RESIZE and SWT.ON_TOP
+ * were shrinking in size. Only applicable to GTK (both GTK2 and GTK3).
+ */
+ if (SwtTestUtil.isGTK) {
+ Shell testShell = new Shell (shell, SWT.RESIZE | SWT.ON_TOP);
+ Point size = new Point (200, 200);
+ testShell.setSize(size);
+ testShell.open();
+ assertEquals(size, testShell.getSize());
+ testShell.dispose();
+ }
+}
+
@Override
@Test
public void test_setSizeLorg_eclipse_swt_graphics_Point() {

Back to the top