Mercurial > hg > gfx-test
changeset 816:287a10068e05 draft
Five new tests added ClippingCircleByRectangleShape.
author | Pavel Tisnovsky <ptisnovs@redhat.com> |
---|---|
date | Wed, 06 Apr 2016 11:55:24 +0200 |
parents | 93f935b8bb37 |
children | 54f7f9794263 |
files | ChangeLog src/org/gfxtest/testsuites/ClippingCircleByRectangleShape.java |
diffstat | 2 files changed, 100 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Tue Apr 05 10:59:38 2016 +0200 +++ b/ChangeLog Wed Apr 06 11:55:24 2016 +0200 @@ -1,3 +1,8 @@ +2016-04-06 Pavel Tisnovsky <ptisnovs@redhat.com> + + * src/org/gfxtest/testsuites/ClippingCircleByRectangleShape.java: + Five new tests added ClippingCircleByRectangleShape. + 2016-04-05 Pavel Tisnovsky <ptisnovs@redhat.com> * src/org/gfxtest/testsuites/BitBltConvolveOp.java:
--- a/src/org/gfxtest/testsuites/ClippingCircleByRectangleShape.java Tue Apr 05 10:59:38 2016 +0200 +++ b/src/org/gfxtest/testsuites/ClippingCircleByRectangleShape.java Wed Apr 06 11:55:24 2016 +0200 @@ -812,6 +812,101 @@ /** * Check if circle shape could be clipped by a rectangular shape. Circle is + * rendered using alpha paint with magenta color at 0% transparency. + * + * @param image + * work image + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testClipCircleByRectangleShapeAlphaPaintMagenta000(TestImage image, Graphics2D graphics2d) + { + // draw circle clipped by rectangle using alpha paint with 0% + // transparency + drawCircleClippedByRectangleAlphaPaintMagenta(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 magenta color at 25% transparency. + * + * @param image + * work image + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testClipCircleByRectangleShapeAlphaPaintMagenta025(TestImage image, Graphics2D graphics2d) + { + // draw circle clipped by rectangle using alpha paint with 25% + // transparency + drawCircleClippedByRectangleAlphaPaintMagenta(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 magenta color at 50% transparency. + * + * @param image + * work image + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testClipCircleByRectangleShapeAlphaPaintMagenta050(TestImage image, Graphics2D graphics2d) + { + // draw circle clipped by rectangle using alpha paint with 50% + // transparency + drawCircleClippedByRectangleAlphaPaintMagenta(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 magenta color at 75% transparency. + * + * @param image + * work image + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testClipCircleByRectangleShapeAlphaPaintMagenta075(TestImage image, Graphics2D graphics2d) + { + // draw circle clipped by rectangle using alpha paint with 75% + // transparency + drawCircleClippedByRectangleAlphaPaintMagenta(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 magenta color at 100% transparency. + * + * @param image + * work image + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testClipCircleByRectangleShapeAlphaPaintMagenta100(TestImage image, Graphics2D graphics2d) + { + // draw circle clipped by rectangle using alpha paint with 100% + // transparency + drawCircleClippedByRectangleAlphaPaintMagenta(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