* FYI: Added one more check in JButton's constructor tests
@ 2006-06-15 19:11 Tania Bento
0 siblings, 0 replies; only message in thread
From: Tania Bento @ 2006-06-15 19:11 UTC (permalink / raw)
To: mauve-patches
[-- Attachment #1: Type: text/plain, Size: 457 bytes --]
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.
[-- Attachment #2: patch.diff --]
[-- Type: text/x-patch, Size: 1679 bytes --]
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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-06-15 19:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-15 19:11 FYI: Added one more check in JButton's constructor tests Tania Bento
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).