public inbox for mauve-patches@sourceware.org
 help / color / mirror / Atom feed
* FYI: MetalFileChooserUI.getPreferredSize()
@ 2006-02-01 15:30 David Gilbert
  0 siblings, 0 replies; only message in thread
From: David Gilbert @ 2006-02-01 15:30 UTC (permalink / raw)
  To: mauve-patches

[-- Attachment #1: Type: text/plain, Size: 327 bytes --]

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  <david.gilbert@object-refinery.com>

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

Regards,

Dave

[-- Attachment #2: diff.txt --]
[-- Type: text/plain, Size: 985 bytes --]

Index: gnu/testlet/javax/swing/plaf/metal/MetalFileChooserUI/getPreferredSize.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalFileChooserUI/getPreferredSize.java,v
retrieving revision 1.2
diff -u -r1.2 getPreferredSize.java
--- gnu/testlet/javax/swing/plaf/metal/MetalFileChooserUI/getPreferredSize.java	1 Feb 2006 13:51:24 -0000	1.2
+++ gnu/testlet/javax/swing/plaf/metal/MetalFileChooserUI/getPreferredSize.java	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);
     

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-02-01 15:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-01 15:30 FYI: MetalFileChooserUI.getPreferredSize() David Gilbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).