changeset 506:9d4807b9f0c5 draft

Five new tests added into ClippingCircleByConvexPolygonalShape test suite.
author Pavel Tisnovsky <ptisnovs@redhat.com>
date Mon, 06 Jan 2014 11:20:02 +0100
parents 04a041573357
children dbc725e7433d
files ChangeLog src/org/gfxtest/testsuites/ClippingCircleByConvexPolygonalShape.java
diffstat 2 files changed, 95 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri Jan 03 13:29:15 2014 +0100
+++ b/ChangeLog	Mon Jan 06 11:20:02 2014 +0100
@@ -1,3 +1,8 @@
+2014-01-06  Pavel Tisnovsky  <ptisnovs@redhat.com>
+
+	* src/org/gfxtest/testsuites/ClippingCircleByConvexPolygonalShape.java:
+	Five new tests added into ClippingCircleByConvexPolygonalShape test suite.
+
 2014-01-03  Pavel Tisnovsky  <ptisnovs@redhat.com>
 
 	* src/org/gfxtest/testsuites/BitBltAffineQuadrantRotateTransformOp.java:
--- a/src/org/gfxtest/testsuites/ClippingCircleByConvexPolygonalShape.java	Fri Jan 03 13:29:15 2014 +0100
+++ b/src/org/gfxtest/testsuites/ClippingCircleByConvexPolygonalShape.java	Mon Jan 06 11:20:02 2014 +0100
@@ -1059,6 +1059,96 @@
     }
 
     /**
+     * Check if circle shape could be clipped by a convex polygonal 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 testClipCircleByPolygonalShapeAlphaPaintWhite000(TestImage image, Graphics2D graphics2d)
+    {
+        // draw circle clipped by convex polygonal shape using alpha paint with 0% transparency
+        drawCircleClippedByPolygonalShapeAlphaPaintWhite(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 white color at 25% transparency.
+     * 
+     * @param image
+     *            work image
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testClipCircleByPolygonalShapeAlphaPaintWhite025(TestImage image, Graphics2D graphics2d)
+    {
+        // draw circle clipped by convex polygonal shape using alpha paint with 25% transparency
+        drawCircleClippedByPolygonalShapeAlphaPaintWhite(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 white color at 50% transparency.
+     * 
+     * @param image
+     *            work image
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testClipCircleByPolygonalShapeAlphaPaintWhite050(TestImage image, Graphics2D graphics2d)
+    {
+        // draw circle clipped by convex polygonal shape using alpha paint with 50% transparency
+        drawCircleClippedByPolygonalShapeAlphaPaintWhite(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 white color at 75% transparency.
+     * 
+     * @param image
+     *            work image
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testClipCircleByPolygonalShapeAlphaPaintWhite075(TestImage image, Graphics2D graphics2d)
+    {
+        // draw circle clipped by convex polygonal shape using alpha paint with 75% transparency
+        drawCircleClippedByPolygonalShapeAlphaPaintWhite(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 white color at 100% transparency.
+     * 
+     * @param image
+     *            work image
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testClipCircleByPolygonalShapeAlphaPaintWhite100(TestImage image, Graphics2D graphics2d)
+    {
+        // draw circle clipped by convex polygonal shape using alpha paint with 100% transparency
+        drawCircleClippedByPolygonalShapeAlphaPaintWhite(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.
      *