This is the mail archive of the mauve-patches@sourceware.org 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: MetalComboBoxButton - additional checks


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
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

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