# HG changeset patch # User Pavel Tisnovsky # Date 1457720343 -3600 # Node ID 33c772165ee088af9d89b79dc1d1f4addc0bce42 # Parent f6d20ead5a1bcce45f131247acd94470ad8ac526 Four new tests added into BlankImage. diff -r f6d20ead5a1b -r 33c772165ee0 ChangeLog --- a/ChangeLog Thu Mar 10 14:33:59 2016 +0100 +++ b/ChangeLog Fri Mar 11 19:19:03 2016 +0100 @@ -1,3 +1,8 @@ +2016-03-11 Pavel Tisnovsky + + * src/org/gfxtest/testsuites/BlankImage.java: + Four new tests added into BlankImage. + 2016-03-10 Pavel Tisnovsky * src/org/gfxtest/testsuites/BlankImage.java: diff -r f6d20ead5a1b -r 33c772165ee0 src/org/gfxtest/testsuites/BlankImage.java --- a/src/org/gfxtest/testsuites/BlankImage.java Thu Mar 10 14:33:59 2016 +0100 +++ b/src/org/gfxtest/testsuites/BlankImage.java Fri Mar 11 19:19:03 2016 +0100 @@ -419,6 +419,66 @@ } /** + * This test fill image with semitransparent white 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 testFillWithSemiTransparentWhiteColor1(TestImage image, Graphics2D graphics) + { + image.fillImage(new Color(1.0f, 1.0f, 1.0f, 0.0f)); + return TestResult.PASSED; + } + + /** + * This test fill image with semitransparent white 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 testFillWithSemiTransparentWhiteColor2(TestImage image, Graphics2D graphics) + { + image.fillImage(new Color(1.0f, 1.0f, 1.0f, 0.33f)); + return TestResult.PASSED; + } + + /** + * This test fill image with semitransparent white 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 testFillWithSemiTransparentWhiteColor3(TestImage image, Graphics2D graphics) + { + image.fillImage(new Color(1.0f, 1.0f, 1.0f, 0.66f)); + return TestResult.PASSED; + } + + /** + * This test fill image with semitransparent white 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 testFillWithSemiTransparentWhiteColor4(TestImage image, Graphics2D graphics) + { + image.fillImage(new Color(1.0f, 1.0f, 1.0f, 1.0f)); + return TestResult.PASSED; + } + + /** * Entry point to the test suite. * * @param args not used in this case