FYI: updates for MetalLookAndFeel tests

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

FYI: updates for MetalLookAndFeel tests

Dave Gilbert-4
I committed this patch to reset the default theme after each test (to
prevent the custom theme accidentally interfering with other tests):

2005-07-28  David Gilbert  <[hidden email]>

    *
gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getAcceleratorForeground.java
    (test): reset default theme after test,
    *
gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getAcceleratorSelectedForeground.java
    (test): likewise,
    * gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getBlack.java
    (test): likewise,
    * gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControl.java
    (test): likewise,
    *
gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControlDarkShadow.java
    (test): likewise,
    *
gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControlDisabled.java
    (test): likewise,
    *
gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControlHighlight.java
    (test): likewise,
    *
gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControlInfo.java
    (test): likewise,
    *
gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControlShadow.java
    (test): likewise,
    *
gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControlTextColor.java
    (test): likewise,
    *
gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControlTextFont.java
    (test): likewise,
    *
gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getDesktopColor.java
    (test): likewise,
    * gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getFocusColor.java
    (test): likewise,
    *
gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getHighlightedTextColor.java
    (test): likewise,
    *
gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getInactiveControlTextColor.java
    (test): likewise,
    *
gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getInactiveSystemTextColor.java
    (test): likewise,
    *
gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getMenuBackground.java
    (test): likewise,
    *
gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getMenuSelectedBackground.java
    (test): likewise,
    *
gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getMenuSelectedForeground.java
    (test): likewise,
    *
gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getMenuTextFont.java
    (test): likewise,
    *
gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getPrimaryControl.java
    (test): likewise,
    *
gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getPrimaryControlDarkShadow.java
    (test): likewise,
    *
gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getPrimaryControlHighlight.java
    (test): likewise,
    *
gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getPrimaryControlInfo.java
    (test): likewise,
    *
gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getPrimaryControlShadow.java
    (test): likewise,
    *
gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getSeparatorBackground.java
    (test): likewise,
    *
gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getSeparatorForeground.java
    (test): likewise,
    *
gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getSubTextFont.java
    (test): likewise,
    *
gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getSystemTextColor.java
    (test): likewise,
    *
gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getSystemTextFont.java
    (test): likewise,
    *
gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getTextHighlightColor.java
    (test): likewise,
    *
gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getUserTextColor.java
    (test): likewise,
    * gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getWhite.java
    (test): likewise,
    *
gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getWindowBackground.java
    (test): likewise,
    *
gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getWindowTitleBackground.java
    (test): likewise,
    *
gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getWindowTitleFont.java
    (test): likewise,
    *
gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getWindowTitleForeground.java
    (test): likewise,
    *
gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getWindowTitleInactiveBackground.java
    (test): likewise,
    *
gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getWindowTitleInactiveForeground.java
    (test): likewise,
    *
gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/setCurrentTheme.java
    (test): likewise.

Regards,

Dave Gilbert



Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getAcceleratorForeground.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getAcceleratorForeground.java,v
retrieving revision 1.1
diff -u -r1.1 getAcceleratorForeground.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getAcceleratorForeground.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getAcceleratorForeground.java 28 Jul 2005 15:53:26 -0000
@@ -52,6 +52,9 @@
 
     c = MetalLookAndFeel.getAcceleratorForeground();
     harness.check(c, new ColorUIResource(Color.red));
+    
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getAcceleratorSelectedForeground.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getAcceleratorSelectedForeground.java,v
retrieving revision 1.1
diff -u -r1.1 getAcceleratorSelectedForeground.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getAcceleratorSelectedForeground.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getAcceleratorSelectedForeground.java 28 Jul 2005 15:53:26 -0000
@@ -51,6 +51,10 @@
 
     c = MetalLookAndFeel.getAcceleratorSelectedForeground();
     harness.check(c, new ColorUIResource(Color.red));
+    
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
+
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getBlack.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getBlack.java,v
retrieving revision 1.1
diff -u -r1.1 getBlack.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getBlack.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getBlack.java 28 Jul 2005 15:53:26 -0000
@@ -50,6 +50,8 @@
     
     black = MetalLookAndFeel.getBlack();
     harness.check(black, new ColorUIResource(Color.red));
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
   }
   
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControl.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControl.java,v
retrieving revision 1.1
diff -u -r1.1 getControl.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControl.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControl.java 28 Jul 2005 15:53:26 -0000
@@ -50,6 +50,10 @@
 
     c = MetalLookAndFeel.getControl();
     harness.check(c, new ColorUIResource(Color.red));
+    
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
+
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControlDarkShadow.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControlDarkShadow.java,v
retrieving revision 1.1
diff -u -r1.1 getControlDarkShadow.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControlDarkShadow.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControlDarkShadow.java 28 Jul 2005 15:53:27 -0000
@@ -51,6 +51,10 @@
 
     c = MetalLookAndFeel.getControlDarkShadow();
     harness.check(c, new ColorUIResource(Color.red));
+    
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
+
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControlDisabled.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControlDisabled.java,v
retrieving revision 1.1
diff -u -r1.1 getControlDisabled.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControlDisabled.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControlDisabled.java 28 Jul 2005 15:53:27 -0000
@@ -50,6 +50,10 @@
 
     c = MetalLookAndFeel.getControlDisabled();
     harness.check(c, new ColorUIResource(Color.red));
+    
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
+
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControlHighlight.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControlHighlight.java,v
retrieving revision 1.1
diff -u -r1.1 getControlHighlight.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControlHighlight.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControlHighlight.java 28 Jul 2005 15:53:27 -0000
@@ -51,6 +51,10 @@
 
     c = MetalLookAndFeel.getControlHighlight();
     harness.check(c, new ColorUIResource(Color.red));
+    
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
+
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControlInfo.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControlInfo.java,v
retrieving revision 1.1
diff -u -r1.1 getControlInfo.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControlInfo.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControlInfo.java 28 Jul 2005 15:53:27 -0000
@@ -51,6 +51,10 @@
 
     c = MetalLookAndFeel.getControlInfo();
     harness.check(c, new ColorUIResource(Color.red));
+    
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
+
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControlShadow.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControlShadow.java,v
retrieving revision 1.1
diff -u -r1.1 getControlShadow.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControlShadow.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControlShadow.java 28 Jul 2005 15:53:27 -0000
@@ -51,6 +51,10 @@
 
     c = MetalLookAndFeel.getControlShadow();
     harness.check(c, new ColorUIResource(Color.red));
+    
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
+
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControlTextColor.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControlTextColor.java,v
retrieving revision 1.1
diff -u -r1.1 getControlTextColor.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControlTextColor.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControlTextColor.java 28 Jul 2005 15:53:27 -0000
@@ -51,6 +51,10 @@
 
     c = MetalLookAndFeel.getControlTextColor();
     harness.check(c, new ColorUIResource(Color.red));
+    
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
+
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControlTextFont.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControlTextFont.java,v
retrieving revision 1.1
diff -u -r1.1 getControlTextFont.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControlTextFont.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getControlTextFont.java 28 Jul 2005 15:53:27 -0000
@@ -51,6 +51,10 @@
 
     f = MetalLookAndFeel.getControlTextFont();
     harness.check(f, new FontUIResource("Dialog", Font.PLAIN, 99));
+    
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
+
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getDesktopColor.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getDesktopColor.java,v
retrieving revision 1.1
diff -u -r1.1 getDesktopColor.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getDesktopColor.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getDesktopColor.java 28 Jul 2005 15:53:27 -0000
@@ -51,6 +51,10 @@
 
     c = MetalLookAndFeel.getDesktopColor();
     harness.check(c, new ColorUIResource(Color.red));
+    
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
+
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getFocusColor.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getFocusColor.java,v
retrieving revision 1.1
diff -u -r1.1 getFocusColor.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getFocusColor.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getFocusColor.java 28 Jul 2005 15:53:27 -0000
@@ -51,6 +51,9 @@
 
     c = MetalLookAndFeel.getFocusColor();
     harness.check(c, new ColorUIResource(Color.red));
+    
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getHighlightedTextColor.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getHighlightedTextColor.java,v
retrieving revision 1.1
diff -u -r1.1 getHighlightedTextColor.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getHighlightedTextColor.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getHighlightedTextColor.java 28 Jul 2005 15:53:27 -0000
@@ -51,6 +51,10 @@
 
     c = MetalLookAndFeel.getHighlightedTextColor();
     harness.check(c, new ColorUIResource(Color.red));
+    
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
+
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getInactiveControlTextColor.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getInactiveControlTextColor.java,v
retrieving revision 1.1
diff -u -r1.1 getInactiveControlTextColor.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getInactiveControlTextColor.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getInactiveControlTextColor.java 28 Jul 2005 15:53:28 -0000
@@ -51,6 +51,10 @@
 
     c = MetalLookAndFeel.getInactiveControlTextColor();
     harness.check(c, new ColorUIResource(Color.red));
+    
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
+
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getInactiveSystemTextColor.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getInactiveSystemTextColor.java,v
retrieving revision 1.1
diff -u -r1.1 getInactiveSystemTextColor.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getInactiveSystemTextColor.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getInactiveSystemTextColor.java 28 Jul 2005 15:53:28 -0000
@@ -51,6 +51,10 @@
 
     c = MetalLookAndFeel.getInactiveSystemTextColor();
     harness.check(c, new ColorUIResource(Color.red));
+    
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
+
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getMenuBackground.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getMenuBackground.java,v
retrieving revision 1.1
diff -u -r1.1 getMenuBackground.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getMenuBackground.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getMenuBackground.java 28 Jul 2005 15:53:28 -0000
@@ -51,6 +51,10 @@
 
     c = MetalLookAndFeel.getMenuBackground();
     harness.check(c, new ColorUIResource(Color.red));  
+    
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
+
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getMenuDisabledForeground.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getMenuDisabledForeground.java,v
retrieving revision 1.1
diff -u -r1.1 getMenuDisabledForeground.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getMenuDisabledForeground.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getMenuDisabledForeground.java 28 Jul 2005 15:53:28 -0000
@@ -51,6 +51,10 @@
 
     c = MetalLookAndFeel.getMenuDisabledForeground();
     harness.check(c, new ColorUIResource(Color.red));  
+    
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
+
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getMenuForeground.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getMenuForeground.java,v
retrieving revision 1.1
diff -u -r1.1 getMenuForeground.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getMenuForeground.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getMenuForeground.java 28 Jul 2005 15:53:28 -0000
@@ -51,6 +51,10 @@
 
     c = MetalLookAndFeel.getMenuForeground();
     harness.check(c, new ColorUIResource(Color.red));  
+    
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
+
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getMenuSelectedBackground.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getMenuSelectedBackground.java,v
retrieving revision 1.1
diff -u -r1.1 getMenuSelectedBackground.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getMenuSelectedBackground.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getMenuSelectedBackground.java 28 Jul 2005 15:53:28 -0000
@@ -51,6 +51,10 @@
 
     c = MetalLookAndFeel.getMenuSelectedBackground();
     harness.check(c, new ColorUIResource(Color.red));  
+    
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
+
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getMenuSelectedForeground.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getMenuSelectedForeground.java,v
retrieving revision 1.1
diff -u -r1.1 getMenuSelectedForeground.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getMenuSelectedForeground.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getMenuSelectedForeground.java 28 Jul 2005 15:53:28 -0000
@@ -51,6 +51,10 @@
 
     c = MetalLookAndFeel.getMenuSelectedForeground();
     harness.check(c, new ColorUIResource(Color.red));  
+    
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
+
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getMenuTextFont.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getMenuTextFont.java,v
retrieving revision 1.1
diff -u -r1.1 getMenuTextFont.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getMenuTextFont.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getMenuTextFont.java 28 Jul 2005 15:53:28 -0000
@@ -51,6 +51,10 @@
 
     f = MetalLookAndFeel.getMenuTextFont();
     harness.check(f, new FontUIResource("Dialog", Font.PLAIN, 99));
+    
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
+
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getPrimaryControl.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getPrimaryControl.java,v
retrieving revision 1.1
diff -u -r1.1 getPrimaryControl.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getPrimaryControl.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getPrimaryControl.java 28 Jul 2005 15:53:28 -0000
@@ -51,6 +51,10 @@
 
     c = MetalLookAndFeel.getPrimaryControl();
     harness.check(c, new ColorUIResource(Color.red));  
+    
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
+
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getPrimaryControlDarkShadow.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getPrimaryControlDarkShadow.java,v
retrieving revision 1.1
diff -u -r1.1 getPrimaryControlDarkShadow.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getPrimaryControlDarkShadow.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getPrimaryControlDarkShadow.java 28 Jul 2005 15:53:28 -0000
@@ -51,6 +51,10 @@
 
     c = MetalLookAndFeel.getPrimaryControlDarkShadow();
     harness.check(c, new ColorUIResource(Color.red));  
+    
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
+
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getPrimaryControlHighlight.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getPrimaryControlHighlight.java,v
retrieving revision 1.1
diff -u -r1.1 getPrimaryControlHighlight.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getPrimaryControlHighlight.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getPrimaryControlHighlight.java 28 Jul 2005 15:53:28 -0000
@@ -51,6 +51,10 @@
 
     c = MetalLookAndFeel.getPrimaryControlHighlight();
     harness.check(c, new ColorUIResource(Color.red));  
+    
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
+
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getPrimaryControlInfo.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getPrimaryControlInfo.java,v
retrieving revision 1.1
diff -u -r1.1 getPrimaryControlInfo.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getPrimaryControlInfo.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getPrimaryControlInfo.java 28 Jul 2005 15:53:28 -0000
@@ -50,7 +50,11 @@
     });
 
     c = MetalLookAndFeel.getPrimaryControlInfo();
-    harness.check(c, new ColorUIResource(Color.red));  
+    harness.check(c, new ColorUIResource(Color.red));
+    
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
+
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getPrimaryControlShadow.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getPrimaryControlShadow.java,v
retrieving revision 1.1
diff -u -r1.1 getPrimaryControlShadow.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getPrimaryControlShadow.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getPrimaryControlShadow.java 28 Jul 2005 15:53:28 -0000
@@ -51,6 +51,10 @@
 
     c = MetalLookAndFeel.getPrimaryControlShadow();
     harness.check(c, new ColorUIResource(Color.red));  
+    
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
+
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getSeparatorBackground.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getSeparatorBackground.java,v
retrieving revision 1.1
diff -u -r1.1 getSeparatorBackground.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getSeparatorBackground.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getSeparatorBackground.java 28 Jul 2005 15:53:28 -0000
@@ -51,6 +51,9 @@
 
     c = MetalLookAndFeel.getSeparatorBackground();
     harness.check(c, new ColorUIResource(Color.red));  
+
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getSeparatorForeground.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getSeparatorForeground.java,v
retrieving revision 1.1
diff -u -r1.1 getSeparatorForeground.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getSeparatorForeground.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getSeparatorForeground.java 28 Jul 2005 15:53:29 -0000
@@ -51,6 +51,10 @@
 
     c = MetalLookAndFeel.getSeparatorForeground();
     harness.check(c, new ColorUIResource(Color.red));  
+    
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
+
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getSubTextFont.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getSubTextFont.java,v
retrieving revision 1.1
diff -u -r1.1 getSubTextFont.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getSubTextFont.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getSubTextFont.java 28 Jul 2005 15:53:29 -0000
@@ -51,6 +51,10 @@
 
     f = MetalLookAndFeel.getSubTextFont();
     harness.check(f, new FontUIResource("Dialog", Font.PLAIN, 99));
+    
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
+
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getSystemTextColor.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getSystemTextColor.java,v
retrieving revision 1.1
diff -u -r1.1 getSystemTextColor.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getSystemTextColor.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getSystemTextColor.java 28 Jul 2005 15:53:29 -0000
@@ -51,6 +51,10 @@
 
     c = MetalLookAndFeel.getSystemTextColor();
     harness.check(c, new ColorUIResource(Color.red));  
+    
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
+
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getSystemTextFont.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getSystemTextFont.java,v
retrieving revision 1.1
diff -u -r1.1 getSystemTextFont.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getSystemTextFont.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getSystemTextFont.java 28 Jul 2005 15:53:29 -0000
@@ -51,6 +51,10 @@
 
     f = MetalLookAndFeel.getSystemTextFont();
     harness.check(f, new FontUIResource("Dialog", Font.PLAIN, 99));
+    
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
+
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getTextHighlightColor.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getTextHighlightColor.java,v
retrieving revision 1.1
diff -u -r1.1 getTextHighlightColor.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getTextHighlightColor.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getTextHighlightColor.java 28 Jul 2005 15:53:29 -0000
@@ -51,6 +51,10 @@
 
     c = MetalLookAndFeel.getTextHighlightColor();
     harness.check(c, new ColorUIResource(Color.red));  
+    
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
+
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getUserTextColor.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getUserTextColor.java,v
retrieving revision 1.1
diff -u -r1.1 getUserTextColor.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getUserTextColor.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getUserTextColor.java 28 Jul 2005 15:53:29 -0000
@@ -50,7 +50,11 @@
     });
 
     c = MetalLookAndFeel.getUserTextColor();
-    harness.check(c, new ColorUIResource(Color.red));  
+    harness.check(c, new ColorUIResource(Color.red));
+    
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
+
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getUserTextFont.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getUserTextFont.java,v
retrieving revision 1.1
diff -u -r1.1 getUserTextFont.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getUserTextFont.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getUserTextFont.java 28 Jul 2005 15:53:29 -0000
@@ -51,6 +51,9 @@
 
     f = MetalLookAndFeel.getUserTextFont();
     harness.check(f, new FontUIResource("Dialog", Font.PLAIN, 99));
+
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getWhite.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getWhite.java,v
retrieving revision 1.1
diff -u -r1.1 getWhite.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getWhite.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getWhite.java 28 Jul 2005 15:53:29 -0000
@@ -50,6 +50,10 @@
 
     white = MetalLookAndFeel.getWhite();
     harness.check(white, new ColorUIResource(Color.red));
+    
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
+
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getWindowBackground.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getWindowBackground.java,v
retrieving revision 1.1
diff -u -r1.1 getWindowBackground.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getWindowBackground.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getWindowBackground.java 28 Jul 2005 15:53:29 -0000
@@ -51,6 +51,10 @@
 
     c = MetalLookAndFeel.getWindowBackground();
     harness.check(c, new ColorUIResource(Color.red));  
+    
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
+
    }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getWindowTitleBackground.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getWindowTitleBackground.java,v
retrieving revision 1.1
diff -u -r1.1 getWindowTitleBackground.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getWindowTitleBackground.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getWindowTitleBackground.java 28 Jul 2005 15:53:29 -0000
@@ -51,6 +51,10 @@
 
     c = MetalLookAndFeel.getWindowTitleBackground();
     harness.check(c, new ColorUIResource(Color.red));  
+    
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
+
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getWindowTitleFont.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getWindowTitleFont.java,v
retrieving revision 1.1
diff -u -r1.1 getWindowTitleFont.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getWindowTitleFont.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getWindowTitleFont.java 28 Jul 2005 15:53:30 -0000
@@ -51,6 +51,10 @@
 
     f = MetalLookAndFeel.getWindowTitleFont();
     harness.check(f, new FontUIResource("Dialog", Font.PLAIN, 99));
+    
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
+
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getWindowTitleForeground.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getWindowTitleForeground.java,v
retrieving revision 1.1
diff -u -r1.1 getWindowTitleForeground.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getWindowTitleForeground.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getWindowTitleForeground.java 28 Jul 2005 15:53:30 -0000
@@ -51,6 +51,10 @@
 
     c = MetalLookAndFeel.getWindowTitleForeground();
     harness.check(c, new ColorUIResource(Color.red));  
+    
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
+
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getWindowTitleInactiveBackground.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getWindowTitleInactiveBackground.java,v
retrieving revision 1.1
diff -u -r1.1 getWindowTitleInactiveBackground.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getWindowTitleInactiveBackground.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getWindowTitleInactiveBackground.java 28 Jul 2005 15:53:30 -0000
@@ -51,6 +51,10 @@
 
     c = MetalLookAndFeel.getWindowTitleInactiveBackground();
     harness.check(c, new ColorUIResource(Color.red));  
+    
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
+
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getWindowTitleInactiveForeground.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getWindowTitleInactiveForeground.java,v
retrieving revision 1.1
diff -u -r1.1 getWindowTitleInactiveForeground.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getWindowTitleInactiveForeground.java 1 Jul 2005 09:35:48 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getWindowTitleInactiveForeground.java 28 Jul 2005 15:53:30 -0000
@@ -51,6 +51,10 @@
 
     c = MetalLookAndFeel.getWindowTitleInactiveForeground();
     harness.check(c, new ColorUIResource(Color.red));  
+    
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
+
   }
 
 }
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/setCurrentTheme.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/setCurrentTheme.java,v
retrieving revision 1.1
diff -u -r1.1 setCurrentTheme.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/setCurrentTheme.java 25 Apr 2005 20:47:08 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/setCurrentTheme.java 28 Jul 2005 15:53:30 -0000
@@ -46,6 +46,8 @@
     c1 = laf.getDefaults().getColor("Button.background");
     h.check(c1, Color.red);
 
+    // reset the theme so that other tests won't be affected
+    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
   }
 
   class TestTheme extends DefaultMetalTheme