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: MetalIconFactory tests


I committed this patch:

2005-10-12 David Gilbert <david.gilbert@object-refinery.com>

* gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getCheckBoxIcon.java: new test,
* gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getCheckBoxMenuItemIcon.java: new test,
* gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getFileChooserDetailViewIcon.java: new test,
* gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getFileChooserHomeFolderIcon.java: new test,
* gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getFileChooserListViewIcon.java: new test,
* gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getFileChooserNewFolderIcon.java: new test,
* gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getFileChooserUpFolderIcon.java: new test,
* gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getHorizontalSliderThumbIcon.java: new test,
* gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getInternalFrameAltMaximizeIcon.java: new test,
* gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getInternalFrameCloseIcon.java: new test,
* gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getInternalFrameDefaultMenuIcon.java: new test,
* gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getInternalFrameMaximizeIcon.java: new test,
* gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getInternalFrameMinimizeIcon.java: new test,
* gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getRadioButtonIcon.java: new test,
* gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getRadioButtonMenuItemIcon.java: new test,
* gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getTreeComputerIcon.java: new test,
* gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getTreeControlIcon.java: updated header,
* gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getTreeFloppyDriveIcon.java: new test,
* gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getTreeFolderIcon.java
(test): added new check,
* gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getTreeHardDriveIcon.java: new test,
* gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getTreeLeafIcon.java
(test): added new check,
* gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getVerticalSliderThumbIcon.java: new test.


Regards,

Dave
Index: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getCheckBoxIcon.java
===================================================================
RCS file: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getCheckBoxIcon.java
diff -N gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getCheckBoxIcon.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getCheckBoxIcon.java	12 Oct 2005 12:56:52 -0000
@@ -0,0 +1,52 @@
+// Tags: JDK1.2 
+
+// Copyright (C) 2005 David Gilbert <david.gilbert@object-refinery.com>
+
+// This file is part of Mauve.
+
+// 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, Inc., 51 Franklin Street, Fifth Floor, 
+// Boston, MA 02110-1301 USA.
+
+package gnu.testlet.javax.swing.plaf.metal.MetalIconFactory;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.Icon;
+import javax.swing.plaf.metal.MetalIconFactory;
+
+/**
+ * Some checks for the getCheckBoxIcon() method.
+ */
+public class getCheckBoxIcon implements Testlet 
+{
+
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness) 
+  {
+    Icon icon = MetalIconFactory.getCheckBoxIcon();
+    harness.check(icon.getIconWidth(), 13);
+    harness.check(icon.getIconHeight(), 13);
+
+    // check that a shared instance is returned
+    Icon icon2 = MetalIconFactory.getCheckBoxIcon();
+    harness.check(icon == icon2);
+  }
+
+}
Index: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getCheckBoxMenuItemIcon.java
===================================================================
RCS file: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getCheckBoxMenuItemIcon.java
diff -N gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getCheckBoxMenuItemIcon.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getCheckBoxMenuItemIcon.java	12 Oct 2005 12:56:52 -0000
@@ -0,0 +1,52 @@
+// Tags: JDK1.2 
+
+// Copyright (C) 2005 David Gilbert <david.gilbert@object-refinery.com>
+
+// This file is part of Mauve.
+
+// 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, Inc., 51 Franklin Street, Fifth Floor, 
+// Boston, MA 02110-1301 USA.
+
+package gnu.testlet.javax.swing.plaf.metal.MetalIconFactory;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.Icon;
+import javax.swing.plaf.metal.MetalIconFactory;
+
+/**
+ * Some checks for the getCheckBoxMenuItemIcon() method.
+ */
+public class getCheckBoxMenuItemIcon implements Testlet 
+{
+
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness) 
+  {
+    Icon icon = MetalIconFactory.getCheckBoxMenuItemIcon();
+    harness.check(icon.getIconWidth(), 10);
+    harness.check(icon.getIconHeight(), 10);
+
+    // check that a shared instance is returned each time
+    Icon icon2 = MetalIconFactory.getCheckBoxMenuItemIcon();
+    harness.check(icon == icon2);
+  }
+
+}
Index: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getFileChooserDetailViewIcon.java
===================================================================
RCS file: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getFileChooserDetailViewIcon.java
diff -N gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getFileChooserDetailViewIcon.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getFileChooserDetailViewIcon.java	12 Oct 2005 12:56:52 -0000
@@ -0,0 +1,53 @@
+// Tags: JDK1.2 
+
+// Copyright (C) 2005 David Gilbert <david.gilbert@object-refinery.com>
+
+// This file is part of Mauve.
+
+// 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, Inc., 51 Franklin Street, Fifth Floor, 
+// Boston, MA 02110-1301 USA.
+
+package gnu.testlet.javax.swing.plaf.metal.MetalIconFactory;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.Icon;
+import javax.swing.plaf.metal.MetalIconFactory;
+
+/**
+ * Some checks for the getFileChooserDetailViewIcon() method.
+ */
+public class getFileChooserDetailViewIcon implements Testlet 
+{
+
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness) 
+  {
+    Icon icon = MetalIconFactory.getFileChooserDetailViewIcon();
+    harness.check(icon.getIconWidth(), 18);
+    harness.check(icon.getIconHeight(), 18);
+    
+    // check that the method returns a shared instance
+    Icon icon2 = MetalIconFactory.getFileChooserDetailViewIcon();
+    harness.check(icon == icon2);
+    
+  }
+
+}
Index: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getFileChooserHomeFolderIcon.java
===================================================================
RCS file: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getFileChooserHomeFolderIcon.java
diff -N gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getFileChooserHomeFolderIcon.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getFileChooserHomeFolderIcon.java	12 Oct 2005 12:56:52 -0000
@@ -0,0 +1,50 @@
+// Tags: JDK1.2 
+
+// Copyright (C) 2005 David Gilbert <david.gilbert@object-refinery.com>
+
+// This file is part of Mauve.
+
+// 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, Inc., 51 Franklin Street, Fifth Floor, 
+// Boston, MA 02110-1301 USA.
+
+package gnu.testlet.javax.swing.plaf.metal.MetalIconFactory;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.Icon;
+import javax.swing.plaf.metal.MetalIconFactory;
+
+/**
+ * Some checks for the getFileChooserHomeFolderIcon() method.
+ */
+public class getFileChooserHomeFolderIcon implements Testlet 
+{
+
+  /**
+   * Runs the test using the specified harness. 
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)  
+  {
+    Icon icon = MetalIconFactory.getFileChooserHomeFolderIcon();
+    harness.check(icon.getIconWidth(), 18);
+    harness.check(icon.getIconHeight(), 18);
+    Icon icon2 = MetalIconFactory.getFileChooserHomeFolderIcon();
+    harness.check(icon == icon2);
+  }
+
+}
Index: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getFileChooserListViewIcon.java
===================================================================
RCS file: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getFileChooserListViewIcon.java
diff -N gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getFileChooserListViewIcon.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getFileChooserListViewIcon.java	12 Oct 2005 12:56:52 -0000
@@ -0,0 +1,50 @@
+// Tags: JDK1.2 
+
+// Copyright (C) 2005 David Gilbert <david.gilbert@object-refinery.com>
+
+// This file is part of Mauve.
+
+// 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, Inc., 51 Franklin Street, Fifth Floor, 
+// Boston, MA 02110-1301 USA.
+
+package gnu.testlet.javax.swing.plaf.metal.MetalIconFactory;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.Icon;
+import javax.swing.plaf.metal.MetalIconFactory;
+
+/**
+ * Some checks for the getFileChooserListViewIcon() method.
+ */
+public class getFileChooserListViewIcon implements Testlet 
+{
+
+  /**
+   * Runs the test using the specified harness. 
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)  
+  {
+    Icon icon = MetalIconFactory.getFileChooserListViewIcon();
+    harness.check(icon.getIconWidth(), 18);
+    harness.check(icon.getIconHeight(), 18);
+    Icon icon2 = MetalIconFactory.getFileChooserListViewIcon();
+    harness.check(icon == icon2);
+  }
+
+}
Index: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getFileChooserNewFolderIcon.java
===================================================================
RCS file: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getFileChooserNewFolderIcon.java
diff -N gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getFileChooserNewFolderIcon.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getFileChooserNewFolderIcon.java	12 Oct 2005 12:56:52 -0000
@@ -0,0 +1,50 @@
+// Tags: JDK1.2 
+
+// Copyright (C) 2005 David Gilbert <david.gilbert@object-refinery.com>
+
+// This file is part of Mauve.
+
+// 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, Inc., 51 Franklin Street, Fifth Floor, 
+// Boston, MA 02110-1301 USA.
+
+package gnu.testlet.javax.swing.plaf.metal.MetalIconFactory;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.Icon;
+import javax.swing.plaf.metal.MetalIconFactory;
+
+/**
+ * Some checks for the getFileChooserNewFolderIcon() method.
+ */
+public class getFileChooserNewFolderIcon implements Testlet 
+{
+
+  /**
+   * Runs the test using the specified harness. 
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)  
+  {
+    Icon icon = MetalIconFactory.getFileChooserNewFolderIcon();
+    harness.check(icon.getIconWidth(), 18);
+    harness.check(icon.getIconHeight(), 18);
+    Icon icon2 = MetalIconFactory.getFileChooserNewFolderIcon();
+    harness.check(icon == icon2);
+  }
+
+}
Index: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getFileChooserUpFolderIcon.java
===================================================================
RCS file: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getFileChooserUpFolderIcon.java
diff -N gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getFileChooserUpFolderIcon.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getFileChooserUpFolderIcon.java	12 Oct 2005 12:56:52 -0000
@@ -0,0 +1,50 @@
+// Tags: JDK1.2 
+
+// Copyright (C) 2005 David Gilbert <david.gilbert@object-refinery.com>
+
+// This file is part of Mauve.
+
+// 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, Inc., 51 Franklin Street, Fifth Floor, 
+// Boston, MA 02110-1301 USA.
+
+package gnu.testlet.javax.swing.plaf.metal.MetalIconFactory;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.Icon;
+import javax.swing.plaf.metal.MetalIconFactory;
+
+/**
+ * Some checks for the getFileChooserUpFolderIcon() method.
+ */
+public class getFileChooserUpFolderIcon implements Testlet 
+{
+
+  /**
+   * Runs the test using the specified harness. 
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)   
+  {
+    Icon icon = MetalIconFactory.getFileChooserUpFolderIcon();
+    harness.check(icon.getIconWidth(), 18);
+    harness.check(icon.getIconHeight(), 18);
+    Icon icon2 = MetalIconFactory.getFileChooserUpFolderIcon();
+    harness.check(icon == icon2);
+  }
+
+}
Index: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getHorizontalSliderThumbIcon.java
===================================================================
RCS file: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getHorizontalSliderThumbIcon.java
diff -N gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getHorizontalSliderThumbIcon.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getHorizontalSliderThumbIcon.java	12 Oct 2005 12:56:52 -0000
@@ -0,0 +1,52 @@
+// Tags: JDK1.2 
+
+// Copyright (C) 2005 David Gilbert <david.gilbert@object-refinery.com>
+
+// This file is part of Mauve.
+
+// 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, Inc., 51 Franklin Street, Fifth Floor, 
+// Boston, MA 02110-1301 USA.
+
+package gnu.testlet.javax.swing.plaf.metal.MetalIconFactory;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.Icon;
+import javax.swing.plaf.metal.MetalIconFactory;
+
+/**
+ * Some checks for the getHorizontalSliderThumbIcon() method.
+ */
+public class getHorizontalSliderThumbIcon implements Testlet 
+{
+
+  /**
+   * Runs the test using the specified harness. 
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)   
+  {
+    Icon icon = MetalIconFactory.getHorizontalSliderThumbIcon();
+    harness.check(icon.getIconWidth(), 15);
+    harness.check(icon.getIconHeight(), 16);
+
+    // check that a new instance is returned each time
+    Icon icon2 = MetalIconFactory.getHorizontalSliderThumbIcon();
+    harness.check(icon != icon2);
+  }
+
+}
Index: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getInternalFrameAltMaximizeIcon.java
===================================================================
RCS file: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getInternalFrameAltMaximizeIcon.java
diff -N gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getInternalFrameAltMaximizeIcon.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getInternalFrameAltMaximizeIcon.java	12 Oct 2005 12:56:52 -0000
@@ -0,0 +1,51 @@
+// Tags: JDK1.2 
+
+// Copyright (C) 2005 David Gilbert <david.gilbert@object-refinery.com>
+
+// This file is part of Mauve.
+
+// 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, Inc., 51 Franklin Street, Fifth Floor, 
+// Boston, MA 02110-1301 USA.
+
+package gnu.testlet.javax.swing.plaf.metal.MetalIconFactory;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.Icon;
+import javax.swing.plaf.metal.MetalIconFactory;
+
+/**
+ * Some checks for the getInternalFrameAltMaximizeIcon() method.
+ */
+public class getInternalFrameAltMaximizeIcon implements Testlet 
+{
+
+  /**
+   * Runs the test using the specified harness. 
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)   
+  {
+    Icon icon = MetalIconFactory.getInternalFrameAltMaximizeIcon(12);
+    harness.check(icon.getIconWidth(), 12);
+    harness.check(icon.getIconHeight(), 12);
+    // check that a new instance is returned each time
+    Icon icon2 = MetalIconFactory.getInternalFrameAltMaximizeIcon(12);
+    harness.check(icon != icon2);
+  }
+
+}
Index: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getInternalFrameCloseIcon.java
===================================================================
RCS file: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getInternalFrameCloseIcon.java
diff -N gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getInternalFrameCloseIcon.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getInternalFrameCloseIcon.java	12 Oct 2005 12:56:53 -0000
@@ -0,0 +1,51 @@
+// Tags: JDK1.2 
+
+// Copyright (C) 2005 David Gilbert <david.gilbert@object-refinery.com>
+
+// This file is part of Mauve.
+
+// 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, Inc., 51 Franklin Street, Fifth Floor, 
+// Boston, MA 02110-1301 USA.
+
+package gnu.testlet.javax.swing.plaf.metal.MetalIconFactory;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.Icon;
+import javax.swing.plaf.metal.MetalIconFactory;
+
+/**
+ * Some checks for the getInternalFrameCloseIcon() method.
+ */
+public class getInternalFrameCloseIcon implements Testlet 
+{
+
+  /**
+   * Runs the test using the specified harness.  
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)    
+  {
+    Icon icon = MetalIconFactory.getInternalFrameCloseIcon(8);
+    harness.check(icon.getIconWidth(), 8);
+    harness.check(icon.getIconHeight(), 8);
+    // check that a new instance is returned each time
+    Icon icon2 = MetalIconFactory.getInternalFrameCloseIcon(8);
+    harness.check(icon != icon2);
+  }
+
+}
Index: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getInternalFrameDefaultMenuIcon.java
===================================================================
RCS file: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getInternalFrameDefaultMenuIcon.java
diff -N gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getInternalFrameDefaultMenuIcon.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getInternalFrameDefaultMenuIcon.java	12 Oct 2005 12:56:53 -0000
@@ -0,0 +1,51 @@
+// Tags: JDK1.2 
+
+// Copyright (C) 2005 David Gilbert <david.gilbert@object-refinery.com>
+
+// This file is part of Mauve.
+
+// 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, Inc., 51 Franklin Street, Fifth Floor, 
+// Boston, MA 02110-1301 USA.
+
+package gnu.testlet.javax.swing.plaf.metal.MetalIconFactory;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.Icon;
+import javax.swing.plaf.metal.MetalIconFactory;
+
+/**
+ * Some checks for the getInternalFrameDefaultMenuIcon() method.
+ */
+public class getInternalFrameDefaultMenuIcon implements Testlet 
+{
+
+  /**
+   * Runs the test using the specified harness.  
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)    
+  {
+    Icon icon = MetalIconFactory.getInternalFrameDefaultMenuIcon();
+    harness.check(icon.getIconWidth(), 16);
+    harness.check(icon.getIconHeight(), 16);
+    // check that a shared instance is returned each time
+    Icon icon2 = MetalIconFactory.getInternalFrameDefaultMenuIcon();
+    harness.check(icon == icon2);
+  }
+
+}
Index: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getInternalFrameMaximizeIcon.java
===================================================================
RCS file: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getInternalFrameMaximizeIcon.java
diff -N gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getInternalFrameMaximizeIcon.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getInternalFrameMaximizeIcon.java	12 Oct 2005 12:56:53 -0000
@@ -0,0 +1,51 @@
+// Tags: JDK1.2 
+
+// Copyright (C) 2005 David Gilbert <david.gilbert@object-refinery.com>
+
+// This file is part of Mauve.
+
+// 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, Inc., 51 Franklin Street, Fifth Floor, 
+// Boston, MA 02110-1301 USA.
+
+package gnu.testlet.javax.swing.plaf.metal.MetalIconFactory;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.Icon;
+import javax.swing.plaf.metal.MetalIconFactory;
+
+/**
+ * Some checks for the getInternalFrameMaximizeIcon() method.
+ */
+public class getInternalFrameMaximizeIcon implements Testlet 
+{
+
+  /**
+   * Runs the test using the specified harness.  
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)    
+  {
+    Icon icon = MetalIconFactory.getInternalFrameMaximizeIcon(16);
+    harness.check(icon.getIconWidth(), 16);
+    harness.check(icon.getIconHeight(), 16);
+    // check that a new instance is returned each time
+    Icon icon2 = MetalIconFactory.getInternalFrameMaximizeIcon(16);
+    harness.check(icon != icon2);
+  }
+
+}
Index: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getInternalFrameMinimizeIcon.java
===================================================================
RCS file: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getInternalFrameMinimizeIcon.java
diff -N gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getInternalFrameMinimizeIcon.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getInternalFrameMinimizeIcon.java	12 Oct 2005 12:56:53 -0000
@@ -0,0 +1,51 @@
+// Tags: JDK1.2 
+
+// Copyright (C) 2005 David Gilbert <david.gilbert@object-refinery.com>
+
+// This file is part of Mauve.
+
+// 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, Inc., 51 Franklin Street, Fifth Floor, 
+// Boston, MA 02110-1301 USA.
+
+package gnu.testlet.javax.swing.plaf.metal.MetalIconFactory;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.Icon;
+import javax.swing.plaf.metal.MetalIconFactory;
+
+/**
+ * Some checks for the getInternalFrameMinimizeIcon() method.
+ */
+public class getInternalFrameMinimizeIcon implements Testlet 
+{
+
+  /**
+   * Runs the test using the specified harness.  
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)     
+  {
+    Icon icon = MetalIconFactory.getInternalFrameMinimizeIcon(16);
+    harness.check(icon.getIconWidth(), 16);
+    harness.check(icon.getIconHeight(), 16);
+    // check that a new instance is returned each time
+    Icon icon2 = MetalIconFactory.getInternalFrameMinimizeIcon(16);
+    harness.check(icon != icon2);
+  }
+
+}
Index: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getRadioButtonIcon.java
===================================================================
RCS file: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getRadioButtonIcon.java
diff -N gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getRadioButtonIcon.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getRadioButtonIcon.java	12 Oct 2005 12:56:53 -0000
@@ -0,0 +1,51 @@
+// Tags: JDK1.2 
+
+// Copyright (C) 2005 David Gilbert <david.gilbert@object-refinery.com>
+
+// This file is part of Mauve.
+
+// 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, Inc., 51 Franklin Street, Fifth Floor, 
+// Boston, MA 02110-1301 USA.
+
+package gnu.testlet.javax.swing.plaf.metal.MetalIconFactory;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.Icon;
+import javax.swing.plaf.metal.MetalIconFactory;
+
+/**
+ * Some checks for the getRadioButtonIcon() method.
+ */
+public class getRadioButtonIcon implements Testlet 
+{
+
+  /**
+   * Runs the test using the specified harness.  
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)     
+  {
+    Icon icon = MetalIconFactory.getRadioButtonIcon();
+    harness.check(icon.getIconWidth(), 13);
+    harness.check(icon.getIconHeight(), 13);
+    // check that a shared instance is returned each time
+    Icon icon2 = MetalIconFactory.getRadioButtonIcon();
+    harness.check(icon == icon2);
+  }
+
+}
Index: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getRadioButtonMenuItemIcon.java
===================================================================
RCS file: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getRadioButtonMenuItemIcon.java
diff -N gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getRadioButtonMenuItemIcon.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getRadioButtonMenuItemIcon.java	12 Oct 2005 12:56:53 -0000
@@ -0,0 +1,51 @@
+// Tags: JDK1.2 
+
+// Copyright (C) 2005 David Gilbert <david.gilbert@object-refinery.com>
+
+// This file is part of Mauve.
+
+// 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, Inc., 51 Franklin Street, Fifth Floor, 
+// Boston, MA 02110-1301 USA.
+
+package gnu.testlet.javax.swing.plaf.metal.MetalIconFactory;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.Icon;
+import javax.swing.plaf.metal.MetalIconFactory;
+
+/**
+ * Some checks for the getRadioButtonMenuItemIcon() method.
+ */
+public class getRadioButtonMenuItemIcon implements Testlet 
+{
+
+  /**
+   * Runs the test using the specified harness.  
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)     
+  {
+    Icon icon = MetalIconFactory.getRadioButtonMenuItemIcon();
+    harness.check(icon.getIconWidth(), 10);
+    harness.check(icon.getIconHeight(), 10);
+    // check that a shared instance is returned each time
+    Icon icon2 = MetalIconFactory.getRadioButtonMenuItemIcon();
+    harness.check(icon == icon2);
+  }
+
+}
Index: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getTreeComputerIcon.java
===================================================================
RCS file: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getTreeComputerIcon.java
diff -N gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getTreeComputerIcon.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getTreeComputerIcon.java	12 Oct 2005 12:56:53 -0000
@@ -0,0 +1,52 @@
+// Tags: JDK1.2 
+
+// Copyright (C) 2005 David Gilbert <david.gilbert@object-refinery.com>
+
+// This file is part of Mauve.
+
+// 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, Inc., 51 Franklin Street, Fifth Floor, 
+// Boston, MA 02110-1301 USA.
+
+package gnu.testlet.javax.swing.plaf.metal.MetalIconFactory;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.Icon;
+import javax.swing.plaf.metal.MetalIconFactory;
+
+/**
+ * Some checks for the getTreeComputerIcon() method.
+ */
+public class getTreeComputerIcon implements Testlet 
+{
+
+  /**
+   * Runs the test using the specified harness.  
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)     
+  {
+    Icon icon = MetalIconFactory.getTreeComputerIcon();
+    harness.check(icon.getIconWidth(), 16);
+    harness.check(icon.getIconHeight(), 16);
+    
+    // check that the method returns a shared instance...
+    Icon icon2 = MetalIconFactory.getTreeComputerIcon();
+    harness.check(icon == icon2);
+  }
+
+}
Index: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getTreeControlIcon.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getTreeControlIcon.java,v
retrieving revision 1.1
diff -u -r1.1 getTreeControlIcon.java
--- gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getTreeControlIcon.java	8 Jul 2005 15:45:42 -0000	1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getTreeControlIcon.java	12 Oct 2005 12:56:53 -0000
@@ -16,8 +16,8 @@
 
 // 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.  */
+// the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 
+// Boston, MA 02110-1301 USA.
 
 package gnu.testlet.javax.swing.plaf.metal.MetalIconFactory;
 
Index: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getTreeFloppyDriveIcon.java
===================================================================
RCS file: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getTreeFloppyDriveIcon.java
diff -N gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getTreeFloppyDriveIcon.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getTreeFloppyDriveIcon.java	12 Oct 2005 12:56:53 -0000
@@ -0,0 +1,51 @@
+// Tags: JDK1.2 
+
+// Copyright (C) 2005 David Gilbert <david.gilbert@object-refinery.com>
+
+// This file is part of Mauve.
+
+// 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, Inc., 51 Franklin Street, Fifth Floor, 
+// Boston, MA 02110-1301 USA.
+
+package gnu.testlet.javax.swing.plaf.metal.MetalIconFactory;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.Icon;
+import javax.swing.plaf.metal.MetalIconFactory;
+
+/**
+ * Some checks for the getTreeFloppyDriveIcon() method.
+ */
+public class getTreeFloppyDriveIcon implements Testlet 
+{
+
+  /**
+   * Runs the test using the specified harness.  
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)     
+  {
+    Icon icon = MetalIconFactory.getTreeFloppyDriveIcon();
+    harness.check(icon.getIconWidth(), 16);
+    harness.check(icon.getIconHeight(), 16);
+
+    Icon icon2 = MetalIconFactory.getTreeFloppyDriveIcon();
+    harness.check(icon == icon2);
+  }
+
+}
Index: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getTreeFolderIcon.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getTreeFolderIcon.java,v
retrieving revision 1.1
diff -u -r1.1 getTreeFolderIcon.java
--- gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getTreeFolderIcon.java	8 Jul 2005 15:45:42 -0000	1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getTreeFolderIcon.java	12 Oct 2005 12:56:54 -0000
@@ -16,8 +16,8 @@
 
 // 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.  */
+// the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 
+// Boston, MA 02110-1301 USA.
 
 package gnu.testlet.javax.swing.plaf.metal.MetalIconFactory;
 
@@ -40,9 +40,13 @@
    */
   public void test(TestHarness harness)     
   {
-    Icon icon = MetalIconFactory.getTreeFloppyDriveIcon();
+    Icon icon = MetalIconFactory.getTreeFolderIcon();
     harness.check(icon.getIconWidth(), 16);
-    harness.check(icon.getIconHeight(), 16);
+    harness.check(icon.getIconHeight(), 18);
+    
+    // check that the method returns a new instance each time
+    Icon icon2 = MetalIconFactory.getTreeFolderIcon();
+    harness.check(icon != icon2);
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getTreeHardDriveIcon.java
===================================================================
RCS file: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getTreeHardDriveIcon.java
diff -N gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getTreeHardDriveIcon.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getTreeHardDriveIcon.java	12 Oct 2005 12:56:54 -0000
@@ -0,0 +1,52 @@
+// Tags: JDK1.2 
+
+// Copyright (C) 2005 David Gilbert <david.gilbert@object-refinery.com>
+
+// This file is part of Mauve.
+
+// 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, Inc., 51 Franklin Street, Fifth Floor, 
+// Boston, MA 02110-1301 USA.
+
+package gnu.testlet.javax.swing.plaf.metal.MetalIconFactory;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.Icon;
+import javax.swing.plaf.metal.MetalIconFactory;
+
+/**
+ * Some checks for the getTreeHardDriveIcon() method.
+ */
+public class getTreeHardDriveIcon implements Testlet 
+{
+
+  /**
+   * Runs the test using the specified harness.  
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)     
+  {
+    Icon icon = MetalIconFactory.getTreeHardDriveIcon();
+    harness.check(icon.getIconWidth(), 16);
+    harness.check(icon.getIconHeight(), 16);
+    
+    Icon icon2 = MetalIconFactory.getTreeHardDriveIcon();
+    harness.check(icon == icon2);
+
+  }
+
+}
Index: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getTreeLeafIcon.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getTreeLeafIcon.java,v
retrieving revision 1.1
diff -u -r1.1 getTreeLeafIcon.java
--- gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getTreeLeafIcon.java	8 Jul 2005 15:45:42 -0000	1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getTreeLeafIcon.java	12 Oct 2005 12:56:54 -0000
@@ -16,8 +16,8 @@
 
 // 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.  */
+// the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 
+// Boston, MA 02110-1301 USA.
 
 package gnu.testlet.javax.swing.plaf.metal.MetalIconFactory;
 
@@ -43,6 +43,10 @@
     Icon icon = MetalIconFactory.getTreeLeafIcon();
     harness.check(icon.getIconWidth(), 16);
     harness.check(icon.getIconHeight(), 20);
+    
+    // check that a new instance is returned each time
+    Icon icon2 = MetalIconFactory.getTreeLeafIcon();
+    harness.check(icon != icon2);
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getVerticalSliderThumbIcon.java
===================================================================
RCS file: gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getVerticalSliderThumbIcon.java
diff -N gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getVerticalSliderThumbIcon.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/plaf/metal/MetalIconFactory/getVerticalSliderThumbIcon.java	12 Oct 2005 12:56:54 -0000
@@ -0,0 +1,51 @@
+// Tags: JDK1.2 
+
+// Copyright (C) 2005 David Gilbert <david.gilbert@object-refinery.com>
+
+// This file is part of Mauve.
+
+// 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, Inc., 51 Franklin Street, Fifth Floor, 
+// Boston, MA 02110-1301 USA.
+
+package gnu.testlet.javax.swing.plaf.metal.MetalIconFactory;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.Icon;
+import javax.swing.plaf.metal.MetalIconFactory;
+
+/**
+ * Some checks for the getVerticalSliderThumbIcon() method.
+ */
+public class getVerticalSliderThumbIcon implements Testlet 
+{
+
+  /**
+   * Runs the test using the specified harness. 
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)   
+  {
+    Icon icon = MetalIconFactory.getVerticalSliderThumbIcon();
+    harness.check(icon.getIconWidth(), 16);
+    harness.check(icon.getIconHeight(), 15);
+    // check that a new instance is returned each time
+    Icon icon2 = MetalIconFactory.getVerticalSliderThumbIcon();
+    harness.check(icon != icon2);
+  }
+
+}

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