changeset 775:ac5a9624f24e draft

Added new tests into ClippingCircleByRectangleArea.
author Pavel Tisnovsky <ptisnovs@redhat.com>
date Tue, 03 Nov 2015 13:54:51 +0100
parents 3ab97f5765d3
children c88a89caa057
files ChangeLog src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java
diffstat 2 files changed, 95 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Nov 02 12:58:32 2015 +0100
+++ b/ChangeLog	Tue Nov 03 13:54:51 2015 +0100
@@ -1,3 +1,8 @@
+2015-11-03  Pavel Tisnovsky  <ptisnovs@redhat.com>
+
+	* src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java:
+	Added new tests into ClippingCircleByRectangleArea.
+
 2015-11-02  Pavel Tisnovsky  <ptisnovs@redhat.com>
 
 	* src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java:
--- a/src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java	Mon Nov 02 12:58:32 2015 +0100
+++ b/src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java	Tue Nov 03 13:54:51 2015 +0100
@@ -791,6 +791,96 @@
     }
 
     /**
+     * Check if circle shape could be clipped by a rectangular area. 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 testClipCircleByRectangleAreaAlphaPaintMagenta000(TestImage image, Graphics2D graphics2d)
+    {
+        // draw circle clipped by rectangle area using alpha paint with 0% transparency
+        drawCircleClippedByRectangleAreaAlphaPaintMagenta(image, graphics2d, 0);
+        // test result
+        return TestResult.PASSED;
+    }
+
+    /**
+     * Check if circle shape could be clipped by a rectangular area. 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 testClipCircleByRectangleAreaAlphaPaintMagenta025(TestImage image, Graphics2D graphics2d)
+    {
+        // draw circle clipped by rectangle area using alpha paint with 25% transparency
+        drawCircleClippedByRectangleAreaAlphaPaintMagenta(image, graphics2d, 25);
+        // test result
+        return TestResult.PASSED;
+    }
+
+    /**
+     * Check if circle shape could be clipped by a rectangular area. 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 testClipCircleByRectangleAreaAlphaPaintMagenta050(TestImage image, Graphics2D graphics2d)
+    {
+        // draw circle clipped by rectangle area using alpha paint with 50% transparency
+        drawCircleClippedByRectangleAreaAlphaPaintMagenta(image, graphics2d, 50);
+        // test result
+        return TestResult.PASSED;
+    }
+
+    /**
+     * Check if circle shape could be clipped by a rectangular area. 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 testClipCircleByRectangleAreaAlphaPaintMagenta075(TestImage image, Graphics2D graphics2d)
+    {
+        // draw circle clipped by rectangle area using alpha paint with 75% transparency
+        drawCircleClippedByRectangleAreaAlphaPaintMagenta(image, graphics2d, 75);
+        // test result
+        return TestResult.PASSED;
+    }
+
+    /**
+     * Check if circle shape could be clipped by a rectangular area. 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 testClipCircleByRectangleAreaAlphaPaintMagenta100(TestImage image, Graphics2D graphics2d)
+    {
+        // draw circle clipped by rectangle area using alpha paint with 100% transparency
+        drawCircleClippedByRectangleAreaAlphaPaintMagenta(image, graphics2d, 100);
+        // test result
+        return TestResult.PASSED;
+    }
+
+    /**
      * Check if circle shape could be clipped by a rectangle area. Circle is
      * rendered using horizontal gradient paint.
      *