Mercurial > hg > gfx-test
changeset 808:0f61e899a9ee draft
Four new tests added into BlankImage.
author | Pavel Tisnovsky <ptisnovs@redhat.com> |
---|---|
date | Mon, 14 Mar 2016 11:26:01 +0100 |
parents | 33c772165ee0 |
children | ab44756e58f8 |
files | ChangeLog src/org/gfxtest/testsuites/BlankImage.java |
diffstat | 2 files changed, 65 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Fri Mar 11 19:19:03 2016 +0100 +++ b/ChangeLog Mon Mar 14 11:26:01 2016 +0100 @@ -1,3 +1,8 @@ +2016-03-14 Pavel Tisnovsky <ptisnovs@redhat.com> + + * src/org/gfxtest/testsuites/BlankImage.java: + Four new tests added into BlankImage. + 2016-03-11 Pavel Tisnovsky <ptisnovs@redhat.com> * src/org/gfxtest/testsuites/BlankImage.java:
--- a/src/org/gfxtest/testsuites/BlankImage.java Fri Mar 11 19:19:03 2016 +0100 +++ b/src/org/gfxtest/testsuites/BlankImage.java Mon Mar 14 11:26:01 2016 +0100 @@ -359,6 +359,66 @@ } /** + * This test fill image with semitransparent magenta color with 0% opacity. + * + * @param image + * image to which two dimensional shape is to be rendered + * @param graphics + * graphics context for image + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testFillWithSemiTransparentMagentaColor1(TestImage image, Graphics2D graphics) + { + image.fillImage(new Color(1.0f, 0.0f, 1.0f, 0.0f)); + return TestResult.PASSED; + } + + /** + * This test fill image with semitransparent magenta color with 33% opacity. + * + * @param image + * image to which two dimensional shape is to be rendered + * @param graphics + * graphics context for image + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testFillWithSemiTransparentMagentaColor2(TestImage image, Graphics2D graphics) + { + image.fillImage(new Color(1.0f, 0.0f, 1.0f, 0.33f)); + return TestResult.PASSED; + } + + /** + * This test fill image with semitransparent magenta color with 66% opacity. + * + * @param image + * image to which two dimensional shape is to be rendered + * @param graphics + * graphics context for image + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testFillWithSemiTransparentMagentaColor3(TestImage image, Graphics2D graphics) + { + image.fillImage(new Color(1.0f, 0.0f, 1.0f, 0.66f)); + return TestResult.PASSED; + } + + /** + * This test fill image with semitransparent magenta color with 100% opacity. + * + * @param image + * image to which two dimensional shape is to be rendered + * @param graphics + * graphics context for image + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testFillWithSemiTransparentMagentaColor4(TestImage image, Graphics2D graphics) + { + image.fillImage(new Color(1.0f, 0.0f, 1.0f, 1.0f)); + return TestResult.PASSED; + } + + /** * This test fill image with semitransparent black color with 0% opacity. * * @param image