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]

FYI: MetalFileChooserUI.getPreferredSize()

This patch removes the check for the actual size, I don't know a reliable way to determine what the expected value is:

2006-02-01 David Gilbert <>

* gnu/testlet/javax/swing/plaf/metal/MetalFileChooserUI/
(test): Removed check for actual size.


Index: gnu/testlet/javax/swing/plaf/metal/MetalFileChooserUI/
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalFileChooserUI/,v
retrieving revision 1.2
diff -u -r1.2
--- gnu/testlet/javax/swing/plaf/metal/MetalFileChooserUI/	1 Feb 2006 13:51:24 -0000	1.2
+++ gnu/testlet/javax/swing/plaf/metal/MetalFileChooserUI/	1 Feb 2006 15:27:10 -0000
@@ -59,11 +59,9 @@
     JFileChooser fc = new JFileChooser();
     MetalFileChooserUI ui = new MetalFileChooserUI(fc);
-    Dimension expected = ui.getMinimumSize(fc);
-    Dimension d1 = ui.getPreferredSize(fc);
-    harness.check(d1, expected);
     // check that the method returns a new instance every time?
+    Dimension d1 = ui.getPreferredSize(fc);
     Dimension d2 = ui.getPreferredSize(fc);
     harness.check(d1 != d2);

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