From: Tania Bento <tbento@redhat.com>
To: mauve-patches <mauve-patches@sources.redhat.com>
Subject: FYI: CompoundBorder
Date: Wed, 06 Dec 2006 18:20:00 -0000 [thread overview]
Message-ID: <1165429218.2680.17.camel@toothpaste.toronto.redhat.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 245 bytes --]
Hey,
This patch adds new tests for CompoundBorder's isBorderOpaque() method.
Cheers,
Tania
2006-12-06 Tania Bento <tbento@redhat.com>
*
gnu/testlet/javax/swing/border/CompoundBorder/isBorderOpaque.java:
Added new tests.
[-- Attachment #2: patch.diff --]
[-- Type: text/x-patch, Size: 2629 bytes --]
Index: gnu/testlet/javax/swing/border/CompoundBorder/isBorderOpaque.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/border/CompoundBorder/isBorderOpaque.java,v
retrieving revision 1.1
diff -u -r1.1 isBorderOpaque.java
--- gnu/testlet/javax/swing/border/CompoundBorder/isBorderOpaque.java 6 Dec 2006 14:49:18 -0000 1.1
+++ gnu/testlet/javax/swing/border/CompoundBorder/isBorderOpaque.java 6 Dec 2006 18:19:12 -0000
@@ -23,7 +23,10 @@
package gnu.testlet.javax.swing.border.CompoundBorder;
+import java.awt.Color;
+
import javax.swing.border.CompoundBorder;
+import javax.swing.border.LineBorder;
import javax.swing.border.TitledBorder;
import gnu.testlet.TestHarness;
@@ -49,6 +52,39 @@
border = new CompoundBorder(new TitledBorder(""), null);
harness.check(border.isBorderOpaque(), false);
+
+ border = new CompoundBorder(new LineBorder(Color.red, 33, false), null);
+ harness.check(border.isBorderOpaque(), true);
+ harness.check(border.getInsideBorder() == null);
+ harness.check(border.getOutsideBorder().isBorderOpaque(), true);
+
+ border = new CompoundBorder(null, new LineBorder(Color.red, 33, false));
+ harness.check(border.isBorderOpaque(), true);
+ harness.check(border.getInsideBorder().isBorderOpaque(), true);
+ harness.check(border.getOutsideBorder() == null);
+
+ border = new CompoundBorder(new LineBorder(Color.red, 33, false),
+ new LineBorder(Color.red, 33, false));
+ harness.check(border.isBorderOpaque(), true);
+ harness.check(border.getInsideBorder().isBorderOpaque(), true);
+ harness.check(border.getOutsideBorder().isBorderOpaque(), true);
+
+ border = new CompoundBorder(new LineBorder(Color.red, 33, true), null);
+ harness.check(border.isBorderOpaque(), false);
+ harness.check(border.getInsideBorder() == null);
+ harness.check(border.getOutsideBorder().isBorderOpaque(), false);
+
+ border = new CompoundBorder(null, new LineBorder(Color.red, 33, true));
+ harness.check(border.isBorderOpaque(), false);
+ harness.check(border.getInsideBorder().isBorderOpaque(), false);
+ harness.check(border.getOutsideBorder() == null);
+
+ border = new CompoundBorder(new LineBorder(Color.red, 33, true),
+ new LineBorder(Color.red, 33, true));
+ harness.check(border.isBorderOpaque(), false);
+ harness.check(border.getInsideBorder().isBorderOpaque(), false);
+ harness.check(border.getOutsideBorder().isBorderOpaque(), false);
+
}
}
reply other threads:[~2006-12-06 18:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1165429218.2680.17.camel@toothpaste.toronto.redhat.com \
--to=tbento@redhat.com \
--cc=mauve-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).