# HG changeset patch # User Pavel Tisnovsky # Date 1446814760 -3600 # Node ID c88a89caa0574eaae81a7db074b9521b83a0b5a2 # Parent ac5a9624f24e1cb8b4383e690939fdcb51175be3 Added five new tests into ClippingCircleByRectangleArea. diff -r ac5a9624f24e -r c88a89caa057 ChangeLog --- a/ChangeLog Tue Nov 03 13:54:51 2015 +0100 +++ b/ChangeLog Fri Nov 06 13:59:20 2015 +0100 @@ -1,3 +1,8 @@ +2015-11-06 Pavel Tisnovsky + + * src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java: + Added five new tests into ClippingCircleByRectangleArea. + 2015-11-03 Pavel Tisnovsky * src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java: diff -r ac5a9624f24e -r c88a89caa057 src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java --- a/src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java Tue Nov 03 13:54:51 2015 +0100 +++ b/src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java Fri Nov 06 13:59:20 2015 +0100 @@ -881,6 +881,96 @@ } /** + * Check if circle shape could be clipped by a rectangular area. 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 testClipCircleByRectangleAreaAlphaPaintCyan000(TestImage image, Graphics2D graphics2d) + { + // draw circle clipped by rectangle area using alpha paint with 0% transparency + drawCircleClippedByRectangleAreaAlphaPaintCyan(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 cyan color at 25% transparency. + * + * @param image + * work image + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testClipCircleByRectangleAreaAlphaPaintCyan025(TestImage image, Graphics2D graphics2d) + { + // draw circle clipped by rectangle area using alpha paint with 25% transparency + drawCircleClippedByRectangleAreaAlphaPaintCyan(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 cyan color at 50% transparency. + * + * @param image + * work image + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testClipCircleByRectangleAreaAlphaPaintCyan050(TestImage image, Graphics2D graphics2d) + { + // draw circle clipped by rectangle area using alpha paint with 50% transparency + drawCircleClippedByRectangleAreaAlphaPaintCyan(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 cyan color at 75% transparency. + * + * @param image + * work image + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testClipCircleByRectangleAreaAlphaPaintCyan075(TestImage image, Graphics2D graphics2d) + { + // draw circle clipped by rectangle area using alpha paint with 75% transparency + drawCircleClippedByRectangleAreaAlphaPaintCyan(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 cyan color at 100% transparency. + * + * @param image + * work image + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testClipCircleByRectangleAreaAlphaPaintCyan100(TestImage image, Graphics2D graphics2d) + { + // draw circle clipped by rectangle area using alpha paint with 100% transparency + drawCircleClippedByRectangleAreaAlphaPaintCyan(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. *