From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31171 invoked by alias); 26 Jun 2006 15:12:39 -0000 Received: (qmail 30396 invoked by uid 22791); 26 Jun 2006 15:12:38 -0000 X-Spam-Check-By: sourceware.org Received: from outmail128141.authsmtp.com (HELO outmail128141.authsmtp.com) (62.13.128.141) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 26 Jun 2006 15:12:36 +0000 Received: from [192.168.1.32] (host217-37-65-246.in-addr.btopenworld.com [217.37.65.246]) (authenticated bits=0) by squirrel.dmpriest.net.uk (8.13.6/8.13.6/Kp) with ESMTP id k5QFCWNL067434 for ; Mon, 26 Jun 2006 16:12:33 +0100 (BST) Message-ID: <449FF97A.2040008@object-refinery.com> Date: Mon, 26 Jun 2006 15:12:00 -0000 From: David Gilbert User-Agent: Mozilla Thunderbird 1.0.8 (X11/20060502) MIME-Version: 1.0 To: mauve-patches Subject: FYI: BasicHTML.isHTMLString() test Content-Type: multipart/mixed; boundary="------------050106040201060901080002" X-Server-Quench: 31849d43-0526-11db-b770-001185d377ca X-AuthRoute: OCdyYgsUB1ZZRRob BmULDStKRB85DhpG AxIIMU5ALVQIUwlL IwBRKV9FNVQBW1wc QzdPCAwBEy0yBiY3 OF8Sc0cINhIfGxs5 DxUHQFRNbkA2Hh4B BhgOUx94dgdMe30+ Z0dlQHNcQkJ/a0R5 RFFWEHIGKzxlCRZs Nz4kdwVTdABOMBxH aFAxV3IFZWxTYnl9 R1JpYXVoZDlVbS4K HVlIdQpLGBZWEmVj GBsLCxsePB9NbSwo LhcGFns4WkcKEnkX FWA9Q1MePF9TQhFT BF0l X-Authentic-SMTP: 61633132333134.squirrel.dmpriest.net.uk:1.55/Kp X-Report-SPAM: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-Virus-Status: No virus detected - but ensure you scan with your own anti-virus system! 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/msg00472.txt.bz2 This is a multi-part message in MIME format. --------------050106040201060901080002 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 247 This patch (committed) adds some checks for the BasicHTML.isHTMLString() method: 2006-06-26 David Gilbert * gnu/testlet/javax/swing/plaf/basic/BasicHTML/isHTMLString.java: New test. Regards, Dave --------------050106040201060901080002 Content-Type: text/plain; name="diff.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diff.txt" Content-length: 2165 Index: gnu/testlet/javax/swing/plaf/basic/BasicHTML/isHTMLString.java =================================================================== RCS file: gnu/testlet/javax/swing/plaf/basic/BasicHTML/isHTMLString.java diff -N gnu/testlet/javax/swing/plaf/basic/BasicHTML/isHTMLString.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ gnu/testlet/javax/swing/plaf/basic/BasicHTML/isHTMLString.java 26 Jun 2006 15:09:35 -0000 @@ -0,0 +1,47 @@ +/* isHTMLString.java -- some checks for the isHTMLString() method in the + BasicHTML class. + Copyright (C) 2006 David Gilbert +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.4 + +package gnu.testlet.javax.swing.plaf.basic.BasicHTML; + +import gnu.testlet.TestHarness; +import gnu.testlet.Testlet; + +import javax.swing.plaf.basic.BasicHTML; + +public class isHTMLString implements Testlet +{ + public void test(TestHarness harness) + { + harness.check(BasicHTML.isHTMLString(""), false); + harness.check(BasicHTML.isHTMLString("A"), false); + harness.check(BasicHTML.isHTMLString("A"), false); + harness.check(BasicHTML.isHTMLString("A"), true); + + // the following special cases are interesting: + harness.check(BasicHTML.isHTMLString(null), false); + harness.check(BasicHTML.isHTMLString(" A "), false); + harness.check(BasicHTML.isHTMLString("A..."), true); + harness.check(BasicHTML.isHTMLString(""), true); + } +} --------------050106040201060901080002--