From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11595 invoked by alias); 3 Jan 2007 19:03:10 -0000 Received: (qmail 11581 invoked by uid 22791); 3 Jan 2007 19:03:09 -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; Wed, 03 Jan 2007 19:02:56 +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 l03J2stq025798 for ; Wed, 3 Jan 2007 14:02:54 -0500 Received: from pobox.toronto.redhat.com (pobox.toronto.redhat.com [172.16.14.4]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l03J2mtV030576 for ; Wed, 3 Jan 2007 14:02:48 -0500 Received: from toothpaste.toronto.redhat.com (toothpaste.toronto.redhat.com [172.16.14.161]) by pobox.toronto.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id l03J2moO013546 for ; Wed, 3 Jan 2007 14:02:48 -0500 Subject: FYI: CardLayout test From: Tania Bento To: _PATHES Mauve Content-Type: multipart/mixed; boundary="=-SHN9dl2u/3ks7MTryWge" Date: Wed, 03 Jan 2007 19:03:00 -0000 Message-Id: <1167850968.2667.1.camel@toothpaste.toronto.redhat.com> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 (2.6.3-1.fc5.5) X-IsSubscribed: yes Mailing-List: contact mauve-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: mauve-patches-owner@sourceware.org X-SW-Source: 2007/txt/msg00002.txt.bz2 --=-SHN9dl2u/3ks7MTryWge Content-Type: text/plain Content-Transfer-Encoding: 7bit Content-length: 245 Hey, This patch adds a new test to CardLayout's maximumLayoutSize(Component) method. Cheers, Tania 2007-01-03 Tania Bento * gnu/testlet/java/awt/CardLayout/testMaximumLayoutSize.java: Added a new test. --=-SHN9dl2u/3ks7MTryWge Content-Disposition: attachment; filename=patch.diff Content-Type: text/x-patch; name=patch.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-length: 1260 Index: gnu/testlet/java/awt/CardLayout/testMaximumLayoutSize.java =================================================================== RCS file: /cvs/mauve/mauve/gnu/testlet/java/awt/CardLayout/testMaximumLayoutSize.java,v retrieving revision 1.1 diff -u -r1.1 testMaximumLayoutSize.java --- gnu/testlet/java/awt/CardLayout/testMaximumLayoutSize.java 18 Oct 2006 21:41:06 -0000 1.1 +++ gnu/testlet/java/awt/CardLayout/testMaximumLayoutSize.java 3 Jan 2007 19:01:10 -0000 @@ -1,5 +1,5 @@ /* testMaximumLayout.java - Copyright (C) 2006 Red Hat + Copyright (C) 2006 Red Hat, 2007 Red Hat This file is part of Mauve. Mauve is free software; you can redistribute it and/or modify @@ -25,6 +25,7 @@ import java.awt.CardLayout; import java.awt.Dimension; +import java.awt.Frame; import gnu.testlet.TestHarness; import gnu.testlet.Testlet; @@ -37,6 +38,11 @@ CardLayout layout = new CardLayout(); harness.check(layout.maximumLayoutSize(null), new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE)); + + Frame frame = new Frame(); + harness.check(frame.getComponentCount(), 0); + harness.check(layout.maximumLayoutSize(frame), + new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE)); } } --=-SHN9dl2u/3ks7MTryWge--