Mercurial > hg > gfx-test
changeset 818:daad166e397b draft default tip
Five new tests added ClippingCircleByRectangleShape.
author | Pavel Tisnovsky <ptisnovs@redhat.com> |
---|---|
date | Fri, 08 Apr 2016 11:47:54 +0200 |
parents | 54f7f9794263 |
children | |
files | ChangeLog src/org/gfxtest/testsuites/ClippingCircleByRectangleShape.java |
diffstat | 2 files changed, 100 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 <ptisnovs@redhat.com> + + * src/org/gfxtest/testsuites/ClippingCircleByRectangleShape.java: + Five new tests added ClippingCircleByRectangleShape. + 2016-04-07 Pavel Tisnovsky <ptisnovs@redhat.com> * src/org/gfxtest/testsuites/BitBltConvolveOp.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