This is the mail archive of the
mauve-patches@sourceware.org
mailing list for the Mauve project.
FYI: MetalComboBoxIcon tests
- From: David Gilbert <david dot gilbert at object-refinery dot com>
- To: mauve-patches at sources dot redhat dot com
- Date: Fri, 30 Sep 2005 22:03:00 +0000
- Subject: FYI: MetalComboBoxIcon tests
I committed a couple of simple tests for the MetalComboBoxIcon class:
2005-09-30 David Gilbert <david.gilbert@object-refinery.com>
* gnu/testlet/javax/swing/plaf/metal/MetalComboBoxIcon/getIconHeight.java: new test,
* gnu/testlet/javax/swing/plaf/metal/MetalComboBoxIcon/getIconWidth.java: new test.
Regards,
Dave
Index: gnu/testlet/javax/swing/plaf/metal/MetalComboBoxIcon/getIconHeight.java
===================================================================
RCS file: gnu/testlet/javax/swing/plaf/metal/MetalComboBoxIcon/getIconHeight.java
diff -N gnu/testlet/javax/swing/plaf/metal/MetalComboBoxIcon/getIconHeight.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/plaf/metal/MetalComboBoxIcon/getIconHeight.java 30 Sep 2005 20:57:26 -0000
@@ -0,0 +1,45 @@
+// Tags: JDK1.2
+
+// Copyright (C) 2005 David Gilbert <david.gilbert@object-refinery.com>
+
+// Mauve is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2, or (at your option)
+// any later version.
+
+// Mauve is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with Mauve; see the file COPYING. If not, write to
+// the Free Software Foundation, 59 Temple Place - Suite 330,
+// Boston, MA 02111-1307, USA. */
+
+package gnu.testlet.javax.swing.plaf.metal.MetalComboBoxIcon;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.plaf.metal.MetalComboBoxIcon;
+
+/**
+ * Some tests for the getIconHeight() method in the
+ * {@link MetalComboBoxIcon} class.
+ */
+public class getIconHeight implements Testlet
+{
+
+ /**
+ * Runs the test using the specified harness.
+ *
+ * @param harness the test harness (<code>null</code> not permitted).
+ */
+ public void test(TestHarness harness)
+ {
+ MetalComboBoxIcon icon = new MetalComboBoxIcon();
+ harness.check(icon.getIconHeight(), 5);
+ }
+
+}
Index: gnu/testlet/javax/swing/plaf/metal/MetalComboBoxIcon/getIconWidth.java
===================================================================
RCS file: gnu/testlet/javax/swing/plaf/metal/MetalComboBoxIcon/getIconWidth.java
diff -N gnu/testlet/javax/swing/plaf/metal/MetalComboBoxIcon/getIconWidth.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/plaf/metal/MetalComboBoxIcon/getIconWidth.java 30 Sep 2005 20:57:26 -0000
@@ -0,0 +1,45 @@
+// Tags: JDK1.2
+
+// Copyright (C) 2005 David Gilbert <david.gilbert@object-refinery.com>
+
+// Mauve is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2, or (at your option)
+// any later version.
+
+// Mauve is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with Mauve; see the file COPYING. If not, write to
+// the Free Software Foundation, 59 Temple Place - Suite 330,
+// Boston, MA 02111-1307, USA. */
+
+package gnu.testlet.javax.swing.plaf.metal.MetalComboBoxIcon;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.plaf.metal.MetalComboBoxIcon;
+
+/**
+ * Some tests for the getIconWidth() method in the
+ * {@link MetalComboBoxIcon} class.
+ */
+public class getIconWidth implements Testlet
+{
+
+ /**
+ * Runs the test using the specified harness.
+ *
+ * @param harness the test harness (<code>null</code> not permitted).
+ */
+ public void test(TestHarness harness)
+ {
+ MetalComboBoxIcon icon = new MetalComboBoxIcon();
+ harness.check(icon.getIconWidth(), 10);
+ }
+
+}