# HG changeset patch # User Pavel Tisnovsky # Date 1460108874 -7200 # Node ID daad166e397b972a0541c09ab0ffd8e2a510f2f3 # Parent 54f7f9794263376ed2b782af396b949d51c35bfc Five new tests added ClippingCircleByRectangleShape. diff -r 54f7f9794263 -r daad166e397b ChangeLog --- a/ChangeLog Thu Apr 07 11:39:40 2016 +0200 +++ b/ChangeLog Fri Apr 08 11:47:54 2016 +0200 @@ -1,3 +1,8 @@ +2016-04-08 Pavel Tisnovsky + + * src/org/gfxtest/testsuites/ClippingCircleByRectangleShape.java: + Five new tests added ClippingCircleByRectangleShape. + 2016-04-07 Pavel Tisnovsky * src/org/gfxtest/testsuites/BitBltConvolveOp.java: diff -r 54f7f9794263 -r daad166e397b src/org/gfxtest/testsuites/ClippingCircleByRectangleShape.java --- a/src/org/gfxtest/testsuites/ClippingCircleByRectangleShape.java Thu Apr 07 11:39:40 2016 +0200 +++ b/src/org/gfxtest/testsuites/ClippingCircleByRectangleShape.java Fri Apr 08 11:47:54 2016 +0200 @@ -907,6 +907,101 @@ /** * Check if circle shape could be clipped by a rectangular shape. Circle is + * rendered using alpha paint with cyan color at 0% transparency. + * + * @param image + * work image + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testClipCircleByRectangleShapeAlphaPaintCyan000(TestImage image, Graphics2D graphics2d) + { + // draw circle clipped by rectangle using alpha paint with 0% + // transparency + drawCircleClippedByRectangleAlphaPaintCyan(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 cyan color at 25% transparency. + * + * @param image + * work image + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testClipCircleByRectangleShapeAlphaPaintCyan025(TestImage image, Graphics2D graphics2d) + { + // draw circle clipped by rectangle using alpha paint with 25% + // transparency + drawCircleClippedByRectangleAlphaPaintCyan(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 cyan color at 50% transparency. + * + * @param image + * work image + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testClipCircleByRectangleShapeAlphaPaintCyan050(TestImage image, Graphics2D graphics2d) + { + // draw circle clipped by rectangle using alpha paint with 50% + // transparency + drawCircleClippedByRectangleAlphaPaintCyan(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 cyan color at 75% transparency. + * + * @param image + * work image + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testClipCircleByRectangleShapeAlphaPaintCyan075(TestImage image, Graphics2D graphics2d) + { + // draw circle clipped by rectangle using alpha paint with 75% + // transparency + drawCircleClippedByRectangleAlphaPaintCyan(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 cyan color at 100% transparency. + * + * @param image + * work image + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testClipCircleByRectangleShapeAlphaPaintCyan100(TestImage image, Graphics2D graphics2d) + { + // draw circle clipped by rectangle using alpha paint with 100% + // transparency + drawCircleClippedByRectangleAlphaPaintCyan(image, graphics2d, 100); + // 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 0% transparency. * * @param image