This is the mail archive of the mailing list for the Mauve project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RFC: Fix java.awt.Dialog.size

This patch fixes an issue in the java.awt.Dialog.size test where the Dialog was shown and then a component was added to it, causing the preferred size to become more than the actual size.

Works with IcedTea6 and gij 4.3.2

2009-03-23  Omair Majid  <>

	* gnu/testlet/java/awt/Dialog/ (test): First add any
	components to the Dialog, then pack it before testing preferred
	size and actual size.

Index: gnu/testlet/java/awt/Dialog/
RCS file: /cvs/mauve/mauve/gnu/testlet/java/awt/Dialog/,v
retrieving revision 1.2
diff -u -r1.2
--- gnu/testlet/java/awt/Dialog/	2 Nov 2005 16:38:22 -0000	1.2
+++ gnu/testlet/java/awt/Dialog/	23 Mar 2009 20:11:13 -0000
@@ -37,8 +37,9 @@
   public void test(TestHarness harness)      
     Dialog jd = new Dialog(new Frame());
     jd.add(new Label("Hello world"));
+    jd.pack();
     // jd insets may be larger than preferred size
     Dimension pref = jd.getPreferredSize();

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]