Mercurial > hg > gfx-test
changeset 778:90d9d455614b draft
Added yet another five new tests into ClippingCircleByRectangleArea.
author | Pavel Tisnovsky <ptisnovs@redhat.com> |
---|---|
date | Fri, 06 Nov 2015 14:07:51 +0100 |
parents | 1cc56c3e0b4d |
children | dedf058d1edf |
files | ChangeLog src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java |
diffstat | 2 files changed, 95 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Fri Nov 06 14:01:12 2015 +0100 +++ b/ChangeLog Fri Nov 06 14:07:51 2015 +0100 @@ -1,3 +1,8 @@ +2015-11-06 Pavel Tisnovsky <ptisnovs@redhat.com> + + * src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java: + Added yet another five new tests into ClippingCircleByRectangleArea. + 2015-11-06 Pavel Tisnovsky <ptisnovs@redhat.com> * src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java:
--- a/src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java Fri Nov 06 14:01:12 2015 +0100 +++ b/src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java Fri Nov 06 14:07:51 2015 +0100 @@ -972,6 +972,96 @@ /** * Check if circle shape could be clipped by a rectangular area. Circle is + * rendered using alpha paint with yellow color at 0% transparency. + * + * @param image + * work image + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testClipCircleByRectangleAreaAlphaPaintYellow000(TestImage image, Graphics2D graphics2d) + { + // draw circle clipped by rectangle area using alpha paint with 0% transparency + drawCircleClippedByRectangleAreaAlphaPaintYellow(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 yellow color at 25% transparency. + * + * @param image + * work image + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testClipCircleByRectangleAreaAlphaPaintYellow025(TestImage image, Graphics2D graphics2d) + { + // draw circle clipped by rectangle area using alpha paint with 25% transparency + drawCircleClippedByRectangleAreaAlphaPaintYellow(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 yellow color at 50% transparency. + * + * @param image + * work image + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testClipCircleByRectangleAreaAlphaPaintYellow050(TestImage image, Graphics2D graphics2d) + { + // draw circle clipped by rectangle area using alpha paint with 50% transparency + drawCircleClippedByRectangleAreaAlphaPaintYellow(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 yellow color at 75% transparency. + * + * @param image + * work image + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testClipCircleByRectangleAreaAlphaPaintYellow075(TestImage image, Graphics2D graphics2d) + { + // draw circle clipped by rectangle area using alpha paint with 75% transparency + drawCircleClippedByRectangleAreaAlphaPaintYellow(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 yellow color at 100% transparency. + * + * @param image + * work image + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testClipCircleByRectangleAreaAlphaPaintYellow100(TestImage image, Graphics2D graphics2d) + { + // draw circle clipped by rectangle area using alpha paint with 100% transparency + drawCircleClippedByRectangleAreaAlphaPaintYellow(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 white color at 0% transparency. * * @param image