/hg/gfx-test: Ten new tests added into ClippingCircleByConvexPol...

ptisnovs at icedtea.classpath.org ptisnovs at icedtea.classpath.org
Fri May 3 00:41:17 PDT 2013


changeset 1f651f68bc2f in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=1f651f68bc2f
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Fri May 03 09:44:22 2013 +0200

	Ten new tests added into ClippingCircleByConvexPolygonalShape..


diffstat:

 ChangeLog                                                            |   5 +
 src/org/gfxtest/testsuites/ClippingCircleByConvexPolygonalShape.java |  90 ++++++++++
 2 files changed, 95 insertions(+), 0 deletions(-)

diffs (112 lines):

diff -r d07e7656ca0b -r 1f651f68bc2f ChangeLog
--- a/ChangeLog	Thu May 02 10:24:15 2013 +0200
+++ b/ChangeLog	Fri May 03 09:44:22 2013 +0200
@@ -1,3 +1,8 @@
+2013-05-03  Pavel Tisnovsky  <ptisnovs at redhat.com>
+
+	* src/org/gfxtest/testsuites/ClippingCircleByConvexPolygonalShape.java:
+	Ten new tests added into ClippingCircleByConvexPolygonalShape..
+
 2013-05-02  Pavel Tisnovsky  <ptisnovs at redhat.com>
 
 	* src/org/gfxtest/testsuites/BitBltConvolveOp.java:
diff -r d07e7656ca0b -r 1f651f68bc2f src/org/gfxtest/testsuites/ClippingCircleByConvexPolygonalShape.java
--- a/src/org/gfxtest/testsuites/ClippingCircleByConvexPolygonalShape.java	Thu May 02 10:24:15 2013 +0200
+++ b/src/org/gfxtest/testsuites/ClippingCircleByConvexPolygonalShape.java	Fri May 03 09:44:22 2013 +0200
@@ -699,6 +699,96 @@
     }
 
     /**
+     * Check if circle shape could be clipped by a convex polygonal shape. Circle is
+     * rendered using alpha paint with magenta color at 0% transparency.
+     * 
+     * @param image
+     *            work image
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testClipCircleByPolygonalShapeAlphaPaintMagenta000(TestImage image, Graphics2D graphics2d)
+    {
+        // draw circle clipped by convex polygonal shape using alpha paint with 0% transparency
+        drawCircleClippedByPolygonalShapeAlphaPaintMagenta(image, graphics2d, 0);
+        // test result
+        return TestResult.PASSED;
+    }
+
+    /**
+     * Check if circle shape could be clipped by a convex polygonal shape. Circle is
+     * rendered using alpha paint with magenta color at 25% transparency.
+     * 
+     * @param image
+     *            work image
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testClipCircleByPolygonalShapeAlphaPaintMagenta025(TestImage image, Graphics2D graphics2d)
+    {
+        // draw circle clipped by convex polygonal shape using alpha paint with 25% transparency
+        drawCircleClippedByPolygonalShapeAlphaPaintMagenta(image, graphics2d, 25);
+        // test result
+        return TestResult.PASSED;
+    }
+
+    /**
+     * Check if circle shape could be clipped by a convex polygonal shape. Circle is
+     * rendered using alpha paint with magenta color at 50% transparency.
+     * 
+     * @param image
+     *            work image
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testClipCircleByPolygonalShapeAlphaPaintMagenta050(TestImage image, Graphics2D graphics2d)
+    {
+        // draw circle clipped by convex polygonal shape using alpha paint with 50% transparency
+        drawCircleClippedByPolygonalShapeAlphaPaintMagenta(image, graphics2d, 50);
+        // test result
+        return TestResult.PASSED;
+    }
+
+    /**
+     * Check if circle shape could be clipped by a convex polygonal shape. Circle is
+     * rendered using alpha paint with magenta color at 75% transparency.
+     * 
+     * @param image
+     *            work image
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testClipCircleByPolygonalShapeAlphaPaintMagenta075(TestImage image, Graphics2D graphics2d)
+    {
+        // draw circle clipped by convex polygonal shape using alpha paint with 75% transparency
+        drawCircleClippedByPolygonalShapeAlphaPaintMagenta(image, graphics2d, 75);
+        // test result
+        return TestResult.PASSED;
+    }
+
+    /**
+     * Check if circle shape could be clipped by a convex polygonal shape. Circle is
+     * rendered using alpha paint with magenta color at 100% transparency.
+     * 
+     * @param image
+     *            work image
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testClipCircleByPolygonalShapeAlphaPaintMagenta100(TestImage image, Graphics2D graphics2d)
+    {
+        // draw circle clipped by convex polygonal shape using alpha paint with 100% transparency
+        drawCircleClippedByPolygonalShapeAlphaPaintMagenta(image, graphics2d, 100);
+        // test result
+        return TestResult.PASSED;
+    }
+
+    /**
      * Check if circle shape could be clipped by a polygonal shape. Circle is
      * rendered using horizontal gradient paint.
      * 



More information about the distro-pkg-dev mailing list