This is the mail archive of the
mauve-patches@sourceware.org
mailing list for the Mauve project.
FYI: Added one more check in JButton's constructor tests
- From: Tania Bento <tbento at redhat dot com>
- To: mauve-patches at sources dot redhat dot com
- Date: Thu, 15 Jun 2006 15:11:52 -0400
- Subject: FYI: Added one more check in JButton's constructor tests
Hey,
Just added one more check that checks the focusability of JButton.
Cheers,
Tania
2006-06-15 Tania Bento <tbento@redhat.com>
* gnu/testlet/javax/swing/JButton/constructors.java
(testConstructor1): Added 'focusable' test.
(testConstructor2): Added 'focusable' test.
(testConstructor4): Added 'focusable' test.
(testConstructor6): Added 'focusable' test.
(testConstructor9): Added 'focusable' test.
Index: gnu/testlet/javax/swing/JButton/constructors.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/JButton/constructors.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- gnu/testlet/javax/swing/JButton/constructors.java 7 Jun 2006 20:26:24 -0000 1.1
+++ gnu/testlet/javax/swing/JButton/constructors.java 15 Jun 2006 18:02:06 -0000 1.2
@@ -70,6 +70,7 @@
JButton b = new JButton();
harness.check(b.getText(), "");
harness.check(b.getIcon(), null);
+ harness.check(b.isFocusable(), true);
}
/**
@@ -87,6 +88,7 @@
};
JButton b = new JButton(myAction);
harness.check(b.getAction(), myAction);
+ harness.check(b.isFocusable(), true);
}
/**
@@ -107,6 +109,7 @@
ImageIcon i = new ImageIcon();
JButton b = new JButton(i);
harness.check(b.getIcon(), i);
+ harness.check(b.isFocusable(), true);
}
/**
@@ -126,6 +129,7 @@
{
JButton b = new JButton("Button Text");
harness.check(b.getText(), "Button Text");
+ harness.check(b.isFocusable(), true);
}
/**
@@ -156,6 +160,7 @@
JButton b = new JButton("Button Text", i);
harness.check(b.getText(), "Button Text");
harness.check(b.getIcon(), i);
+ harness.check(b.isFocusable(), true);
}
/**
@@ -202,7 +207,7 @@
harness.check(b.getUIClassID(), "ButtonUI");
harness.check(b.getModel() instanceof ButtonModel);
harness.check(b.getModel() != null);
-
+
harness.check(b.getActionCommand(), "");
harness.check(b.isBorderPainted(), true);
harness.check(b.isContentAreaFilled(), true);