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: java.awt.Component.properties.java - test fix


This patch (committed) fixes a broken test for the Component class:

2006-07-25 David Gilbert <david.gilbert@object-refinery.com>

	* gnu/testlet/java/awt/Component/properties.java
	(test): 'name' property should fire an event.

Regards,

Dave
Index: gnu/testlet/java/awt/Component/properties.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/java/awt/Component/properties.java,v
retrieving revision 1.2
diff -u -r1.2 properties.java
--- gnu/testlet/java/awt/Component/properties.java	11 Mar 2005 11:52:32 -0000	1.2
+++ gnu/testlet/java/awt/Component/properties.java	25 Jul 2006 08:16:17 -0000
@@ -1,6 +1,6 @@
 // Tags: GUI JDK1.2
 
-// Copyright (C) 2005 Red Hat
+// Copyright (C) 2005, 2006, Red Hat
 
 // This file is part of Mauve.
 
@@ -15,20 +15,27 @@
 // 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.
+// 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.java.awt.Component;
 
 import gnu.testlet.TestHarness;
 import gnu.testlet.Testlet;
 
-import java.awt.*;
-import java.awt.dnd.*;
-import java.util.*;
-import java.beans.*;
-
+import java.awt.Color;
+import java.awt.Component;
+import java.awt.ComponentOrientation;
+import java.awt.Cursor;
+import java.awt.Dimension;
+import java.awt.Font;
+import java.awt.Point;
+import java.awt.Rectangle;
+import java.awt.dnd.DropTarget;
+import java.beans.PropertyChangeEvent;
+import java.beans.PropertyChangeListener;
+import java.util.Locale;
 
 /**
  * Check if bound properties are firing PropertyChangeEvents and
@@ -118,10 +125,10 @@
     comp.setLocation(new Point(123, 456));
     harness.check(propertyName, null, "Property: location");
 
-    // check 'name' property (must not be fired)
+    // check 'name' property (must be fired)
     propertyName = null;
     comp.setName("Obelix");
-    harness.check(propertyName, null, "Property: name");
+    harness.check(propertyName, "name", "Property: name");
 
     // check 'size' property (must not be fired)
     propertyName = null;
@@ -134,6 +141,5 @@
     comp.setVisible(false);
     harness.check(propertyName, null, "Property: visible");
 
-
   }
 }

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