/hg/gfx-test: Five new tests added into ClippingCircleByRectangl...
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Mon Jun 3 01:11:08 PDT 2013
changeset ed8160c7efb3 in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=ed8160c7efb3
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Mon Jun 03 10:14:37 2013 +0200
Five new tests added into ClippingCircleByRectangleShape.
diffstat:
ChangeLog | 5 +
src/org/gfxtest/testsuites/ClippingCircleByRectangleShape.java | 95 ++++++++++
2 files changed, 100 insertions(+), 0 deletions(-)
diffs (117 lines):
diff -r c43d115f3780 -r ed8160c7efb3 ChangeLog
--- a/ChangeLog Fri May 31 14:24:09 2013 +0200
+++ b/ChangeLog Mon Jun 03 10:14:37 2013 +0200
@@ -1,3 +1,8 @@
+2013-06-03 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/gfxtest/testsuites/ClippingCircleByRectangleShape.java:
+ Five new tests added into ClippingCircleByRectangleShape.
+
2013-05-31 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/gfxtest/testsuites/ClippingCircleByRectangleShape.java:
diff -r c43d115f3780 -r ed8160c7efb3 src/org/gfxtest/testsuites/ClippingCircleByRectangleShape.java
--- a/src/org/gfxtest/testsuites/ClippingCircleByRectangleShape.java Fri May 31 14:24:09 2013 +0200
+++ b/src/org/gfxtest/testsuites/ClippingCircleByRectangleShape.java Mon Jun 03 10:14:37 2013 +0200
@@ -811,6 +811,101 @@
}
/**
+ * Check if circle shape could be clipped by a rectangular shape. Circle is
+ * rendered using alpha paint with white color at 0% transparency.
+ *
+ * @param image
+ * work image
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testClipCircleByRectangleShapeAlphaPaintWhite000(TestImage image, Graphics2D graphics2d)
+ {
+ // draw circle clipped by rectangle using alpha paint with 0%
+ // transparency
+ drawCircleClippedByRectangleAlphaPaintWhite(image, graphics2d, 0);
+ // test result
+ return TestResult.PASSED;
+ }
+
+ /**
+ * Check if circle shape could be clipped by a rectangular shape. Circle is
+ * rendered using alpha paint with white color at 25% transparency.
+ *
+ * @param image
+ * work image
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testClipCircleByRectangleShapeAlphaPaintWhite025(TestImage image, Graphics2D graphics2d)
+ {
+ // draw circle clipped by rectangle using alpha paint with 25%
+ // transparency
+ drawCircleClippedByRectangleAlphaPaintWhite(image, graphics2d, 25);
+ // test result
+ return TestResult.PASSED;
+ }
+
+ /**
+ * Check if circle shape could be clipped by a rectangular shape. Circle is
+ * rendered using alpha paint with white color at 50% transparency.
+ *
+ * @param image
+ * work image
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testClipCircleByRectangleShapeAlphaPaintWhite050(TestImage image, Graphics2D graphics2d)
+ {
+ // draw circle clipped by rectangle using alpha paint with 50%
+ // transparency
+ drawCircleClippedByRectangleAlphaPaintWhite(image, graphics2d, 50);
+ // test result
+ return TestResult.PASSED;
+ }
+
+ /**
+ * Check if circle shape could be clipped by a rectangular shape. Circle is
+ * rendered using alpha paint with white color at 75% transparency.
+ *
+ * @param image
+ * work image
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testClipCircleByRectangleShapeAlphaPaintWhite075(TestImage image, Graphics2D graphics2d)
+ {
+ // draw circle clipped by rectangle using alpha paint with 75%
+ // transparency
+ drawCircleClippedByRectangleAlphaPaintWhite(image, graphics2d, 75);
+ // test result
+ return TestResult.PASSED;
+ }
+
+ /**
+ * Check if circle shape could be clipped by a rectangular shape. Circle is
+ * rendered using alpha paint with white color at 100% transparency.
+ *
+ * @param image
+ * work image
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testClipCircleByRectangleShapeAlphaPaintWhite100(TestImage image, Graphics2D graphics2d)
+ {
+ // draw circle clipped by rectangle using alpha paint with 100%
+ // transparency
+ drawCircleClippedByRectangleAlphaPaintWhite(image, graphics2d, 100);
+ // test result
+ return TestResult.PASSED;
+ }
+
+ /**
* Check if circle shape could be clipped by a rectangle shape. Circle is
* rendered using horizontal gradient paint.
*
More information about the distro-pkg-dev
mailing list