# HG changeset patch # User Pavel Tisnovsky # Date 1446465512 -3600 # Node ID 3ab97f5765d378f228b40fd96d4f8c2e44754e1e # Parent 258c372b5e8ec2fdd27b4a7e7391feaf46484d69 Added new tests into ClippingCircleByRectangleArea. diff -r 258c372b5e8e -r 3ab97f5765d3 ChangeLog --- a/ChangeLog Fri Oct 16 11:39:10 2015 +0200 +++ b/ChangeLog Mon Nov 02 12:58:32 2015 +0100 @@ -1,3 +1,8 @@ +2015-11-02 Pavel Tisnovsky + + * src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java: + Added new tests into ClippingCircleByRectangleArea. + 2015-10-16 Pavel Tisnovsky * src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java: diff -r 258c372b5e8e -r 3ab97f5765d3 src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java --- a/src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java Fri Oct 16 11:39:10 2015 +0200 +++ b/src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java Mon Nov 02 12:58:32 2015 +0100 @@ -432,6 +432,96 @@ /** * Check if circle shape could be clipped by a rectangular area. Circle is + * rendered using alpha paint with black color at 0% transparency. + * + * @param image + * work image + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testClipCircleByRectangleAreaAlphaPaintBlack000(TestImage image, Graphics2D graphics2d) + { + // draw circle clipped by rectangle area using alpha paint with 0% transparency + drawCircleClippedByRectangleAreaAlphaPaintBlack(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 black color at 25% transparency. + * + * @param image + * work image + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testClipCircleByRectangleAreaAlphaPaintBlack025(TestImage image, Graphics2D graphics2d) + { + // draw circle clipped by rectangle area using alpha paint with 25% transparency + drawCircleClippedByRectangleAreaAlphaPaintBlack(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 black color at 50% transparency. + * + * @param image + * work image + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testClipCircleByRectangleAreaAlphaPaintBlack050(TestImage image, Graphics2D graphics2d) + { + // draw circle clipped by rectangle area using alpha paint with 50% transparency + drawCircleClippedByRectangleAreaAlphaPaintBlack(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 black color at 75% transparency. + * + * @param image + * work image + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testClipCircleByRectangleAreaAlphaPaintBlack075(TestImage image, Graphics2D graphics2d) + { + // draw circle clipped by rectangle area using alpha paint with 75% transparency + drawCircleClippedByRectangleAreaAlphaPaintBlack(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 black color at 100% transparency. + * + * @param image + * work image + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testClipCircleByRectangleAreaAlphaPaintBlack100(TestImage image, Graphics2D graphics2d) + { + // draw circle clipped by rectangle area using alpha paint with 100% transparency + drawCircleClippedByRectangleAreaAlphaPaintBlack(image, graphics2d, 100); + // test result + return TestResult.PASSED; + } + + /** + * Check if circle shape could be clipped by a rectangular area. Circle is * rendered using alpha paint with red color at 0% transparency. * * @param image