From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20016 invoked by alias); 15 Jun 2006 19:11:58 -0000 Received: (qmail 19997 invoked by uid 22791); 15 Jun 2006 19:11:57 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 15 Jun 2006 19:11:55 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5FJBr9g029422 for ; Thu, 15 Jun 2006 15:11:53 -0400 Received: from pobox.toronto.redhat.com (pobox.toronto.redhat.com [172.16.14.4]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5FJBrBw019617 for ; Thu, 15 Jun 2006 15:11:53 -0400 Received: from toad.toronto.redhat.com (toad.toronto.redhat.com [172.16.14.239]) by pobox.toronto.redhat.com (8.12.8/8.12.8) with ESMTP id k5FJBrve007451 for ; Thu, 15 Jun 2006 15:11:53 -0400 Subject: FYI: Added one more check in JButton's constructor tests From: Tania Bento To: mauve-patches@sources.redhat.com Content-Type: multipart/mixed; boundary="=-ounYsHIxX9wxnJwaayXa" Date: Thu, 15 Jun 2006 19:11:00 -0000 Message-Id: <1150398713.2666.61.camel@toad.toronto.redhat.com> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 (2.6.1-1.fc5.2) X-IsSubscribed: yes Mailing-List: contact mauve-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: mauve-patches-owner@sourceware.org X-SW-Source: 2006/txt/msg00416.txt.bz2 --=-ounYsHIxX9wxnJwaayXa Content-Type: text/plain Content-Transfer-Encoding: 7bit Content-length: 457 Hey, Just added one more check that checks the focusability of JButton. Cheers, Tania 2006-06-15 Tania Bento * 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. --=-ounYsHIxX9wxnJwaayXa Content-Disposition: attachment; filename=patch.diff Content-Type: text/x-patch; name=patch.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-length: 1679 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); --=-ounYsHIxX9wxnJwaayXa--