This is the mail archive of the
mauve-patches@sourceware.org
mailing list for the Mauve project.
FYI: JTable.getAccessibleContext() - new test
- From: David Gilbert <david dot gilbert at object-refinery dot com>
- To: mauve-patches <mauve-patches at sources dot redhat dot com>
- Date: Wed, 31 May 2006 17:30:01 +0100
- Subject: FYI: JTable.getAccessibleContext() - new test
This patch (committed) adds some checks for the getAccessibleContext()
method in the JTable class:
2006-05-31 David Gilbert <david.gilbert@object-refinery.com>
* gnu/testlet/javax/swing/JTable/getAccessibleContext.java: New file,
* gnu/testlet/javax/swing/JTable/getCellEditor.java: New file.
A patch has already gone into GNU Classpath CVS to fix the failing tests.
Regards,
Dave
Index: gnu/testlet/javax/swing/JTable/getAccessibleContext.java
===================================================================
RCS file: gnu/testlet/javax/swing/JTable/getAccessibleContext.java
diff -N gnu/testlet/javax/swing/JTable/getAccessibleContext.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/JTable/getAccessibleContext.java 31 May 2006 16:25:07 -0000
@@ -0,0 +1,51 @@
+/* getAccessibleContext.java -- some checks for the getAccessibleContext()
+ method in the JTable class.
+ Copyright (C) 2006 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.
+
+*/
+
+// Tags: JDK1.2
+
+package gnu.testlet.javax.swing.JTable;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.accessibility.AccessibleContext;
+import javax.accessibility.AccessibleRole;
+import javax.swing.JTable;
+
+public class getAccessibleContext implements Testlet
+{
+ public void test(TestHarness harness)
+ {
+ JTable t = new JTable();
+ AccessibleContext ac = t.getAccessibleContext();
+ harness.check(ac.getAccessibleName(), null);
+ harness.check(ac.getAccessibleRole(), AccessibleRole.TABLE);
+ harness.check(ac.getAccessibleAction(), null);
+ harness.check(ac.getAccessibleComponent(), ac);
+ harness.check(ac.getAccessibleDescription(), null);
+ harness.check(ac.getAccessibleEditableText(), null);
+ harness.check(ac.getAccessibleIcon(), null);
+ harness.check(ac.getAccessibleTable(), ac);
+ harness.check(ac.getAccessibleText(), null);
+
+ }
+}
Index: gnu/testlet/javax/swing/JTable/getCellEditor.java
===================================================================
RCS file: gnu/testlet/javax/swing/JTable/getCellEditor.java
diff -N gnu/testlet/javax/swing/JTable/getCellEditor.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/JTable/getCellEditor.java 31 May 2006 16:25:07 -0000
@@ -0,0 +1,39 @@
+/* getCellEditor.java -- some checks for the getCellEditor() method in the
+ JTable class.
+ Copyright (C) 2006 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.
+
+*/
+
+// Tags: JDK1.2
+
+package gnu.testlet.javax.swing.JTable;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.JTable;
+
+public class getCellEditor implements Testlet
+{
+ public void test(TestHarness harness)
+ {
+ JTable table = new JTable();
+ harness.check(table.getCellEditor(), null);
+ }
+}