* FYI: java.awt.Component.properties.java - test fix
@ 2006-07-25 8:23 David Gilbert
0 siblings, 0 replies; only message in thread
From: David Gilbert @ 2006-07-25 8:23 UTC (permalink / raw)
To: mauve-patches
[-- Attachment #1: Type: text/plain, Size: 246 bytes --]
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
[-- Attachment #2: diff.txt --]
[-- Type: text/plain, Size: 2251 bytes --]
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");
-
}
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-07-25 8:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-25 8:23 FYI: java.awt.Component.properties.java - test fix David Gilbert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).