public inbox for mauve-patches@sourceware.org
 help / color / mirror / Atom feed
* FYI: MetalComboBoxButton - additional checks
@ 2005-11-07 22:15 David Gilbert
  0 siblings, 0 replies; only message in thread
From: David Gilbert @ 2005-11-07 22:15 UTC (permalink / raw)
  To: mauve-patches

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

I added some additional checks for this class:

2005-11-07  David Gilbert  <david.gilbert@object-refinery.com>

    * 
gnu/testlet/javax/swing/plaf/metal/MetalComboBoxButton/constructors.java
    (testConstructor1): Added new checks.

Regards,

Dave

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

Index: gnu/testlet/javax/swing/plaf/metal/MetalComboBoxButton/constructors.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalComboBoxButton/constructors.java,v
retrieving revision 1.1
diff -u -r1.1 constructors.java
--- gnu/testlet/javax/swing/plaf/metal/MetalComboBoxButton/constructors.java	13 Oct 2005 07:43:31 -0000	1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalComboBoxButton/constructors.java	7 Nov 2005 22:10:21 -0000
@@ -24,10 +24,13 @@
 import gnu.testlet.TestHarness;
 import gnu.testlet.Testlet;
 
+import java.awt.Insets;
+
 import javax.swing.CellRendererPane;
 import javax.swing.Icon;
 import javax.swing.JComboBox;
 import javax.swing.JList;
+import javax.swing.plaf.UIResource;
 import javax.swing.plaf.metal.MetalComboBoxButton;
 import javax.swing.plaf.metal.MetalComboBoxIcon;
 
@@ -58,6 +61,11 @@
     harness.check(b.getComboBox() == jcb);
     harness.check(b.getComboIcon() == icon);
     harness.check(!b.isIconOnly());
+    Insets margin = b.getMargin();
+    harness.check(margin, new Insets(2, 14, 2, 14));
+    harness.check(margin instanceof UIResource);
+    Insets insets = b.getInsets();
+    harness.check(insets, new Insets(4, 17, 5, 17));
     
     boolean pass = false;
     try

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

only message in thread, other threads:[~2005-11-07 22:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-07 22:15 FYI: MetalComboBoxButton - additional checks 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).