# HG changeset patch # User Pavel Tisnovsky # Date 1446814872 -3600 # Node ID 1cc56c3e0b4da3c84b6e87ce3082f269256d016d # Parent c88a89caa0574eaae81a7db074b9521b83a0b5a2 Added another five new tests into ClippingCircleByRectangleArea. diff -r c88a89caa057 -r 1cc56c3e0b4d ChangeLog --- a/ChangeLog Fri Nov 06 13:59:20 2015 +0100 +++ b/ChangeLog Fri Nov 06 14:01:12 2015 +0100 @@ -1,3 +1,8 @@ +2015-11-06 Pavel Tisnovsky + + * src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java: + Added another five new tests into ClippingCircleByRectangleArea. + 2015-11-06 Pavel Tisnovsky * src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java: diff -r c88a89caa057 -r 1cc56c3e0b4d src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java --- a/src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java Fri Nov 06 13:59:20 2015 +0100 +++ b/src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java Fri Nov 06 14:01:12 2015 +0100 @@ -971,6 +971,96 @@ } /** + * Check if circle shape could be clipped by a rectangular area. 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 testClipCircleByRectangleAreaAlphaPaintWhite000(TestImage image, Graphics2D graphics2d) + { + // draw circle clipped by rectangle area using alpha paint with 0% transparency + drawCircleClippedByRectangleAreaAlphaPaintWhite(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 white color at 25% transparency. + * + * @param image + * work image + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testClipCircleByRectangleAreaAlphaPaintWhite025(TestImage image, Graphics2D graphics2d) + { + // draw circle clipped by rectangle area using alpha paint with 25% transparency + drawCircleClippedByRectangleAreaAlphaPaintWhite(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 white color at 50% transparency. + * + * @param image + * work image + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testClipCircleByRectangleAreaAlphaPaintWhite050(TestImage image, Graphics2D graphics2d) + { + // draw circle clipped by rectangle area using alpha paint with 50% transparency + drawCircleClippedByRectangleAreaAlphaPaintWhite(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 white color at 75% transparency. + * + * @param image + * work image + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testClipCircleByRectangleAreaAlphaPaintWhite075(TestImage image, Graphics2D graphics2d) + { + // draw circle clipped by rectangle area using alpha paint with 75% transparency + drawCircleClippedByRectangleAreaAlphaPaintWhite(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 white color at 100% transparency. + * + * @param image + * work image + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testClipCircleByRectangleAreaAlphaPaintWhite100(TestImage image, Graphics2D graphics2d) + { + // draw circle clipped by rectangle area using alpha paint with 100% transparency + drawCircleClippedByRectangleAreaAlphaPaintWhite(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. *