# HG changeset patch # User Pavel Tisnovsky # Date 1444988224 -7200 # Node ID 0fa86643b45b9f73e588b3f33bacd256861a64fb # Parent 848a1c52413d91c4e1eacc601de434fd17233956 Another five new tests added into BitBltUsingBgColorAlpha.java. diff -r 848a1c52413d -r 0fa86643b45b ChangeLog --- a/ChangeLog Thu Oct 15 15:27:24 2015 +0200 +++ b/ChangeLog Fri Oct 16 11:37:04 2015 +0200 @@ -1,3 +1,8 @@ +2015-10-16 Pavel Tisnovsky + + * src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java: + Another five new tests added into BitBltUsingBgColorAlpha.java. + 2015-10-15 Pavel Tisnovsky * src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java: diff -r 848a1c52413d -r 0fa86643b45b src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java --- a/src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java Thu Oct 15 15:27:24 2015 +0200 +++ b/src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java Fri Oct 16 11:37:04 2015 +0200 @@ -2833,6 +2833,81 @@ } /** + * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_ARGB_PRE}. + * Background color is set to Color.red. + * + * @param image + * image to be used as a destination for BitBlt-type operations + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testBitBltEmptyBufferedImageTypeIntARGBPreBackgroundRedAlpha000(TestImage image, Graphics2D graphics2d) + { + return doBitBltEmptyBufferedImageTypeIntARGBPre(image, graphics2d, Color.red, 0.0f); + } + + /** + * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_ARGB_PRE}. + * Background color is set to Color.red. + * + * @param image + * image to be used as a destination for BitBlt-type operations + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testBitBltEmptyBufferedImageTypeIntARGBPreBackgroundRedAlpha025(TestImage image, Graphics2D graphics2d) + { + return doBitBltEmptyBufferedImageTypeIntARGBPre(image, graphics2d, Color.red, 0.25f); + } + + /** + * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_ARGB_PRE}. + * Background color is set to Color.red. + * + * @param image + * image to be used as a destination for BitBlt-type operations + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testBitBltEmptyBufferedImageTypeIntARGBPreBackgroundRedAlpha050(TestImage image, Graphics2D graphics2d) + { + return doBitBltEmptyBufferedImageTypeIntARGBPre(image, graphics2d, Color.red, 0.5f); + } + + /** + * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_ARGB_PRE}. + * Background color is set to Color.red. + * + * @param image + * image to be used as a destination for BitBlt-type operations + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testBitBltEmptyBufferedImageTypeIntARGBPreBackgroundRedAlpha075(TestImage image, Graphics2D graphics2d) + { + return doBitBltEmptyBufferedImageTypeIntARGBPre(image, graphics2d, Color.red, 0.75f); + } + + /** + * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_ARGB_PRE}. + * Background color is set to Color.red. + * + * @param image + * image to be used as a destination for BitBlt-type operations + * @param graphics2d + * graphics canvas + * @return test result status - PASSED, FAILED or ERROR + */ + public TestResult testBitBltEmptyBufferedImageTypeIntARGBPreBackgroundRedAlpha100(TestImage image, Graphics2D graphics2d) + { + return doBitBltEmptyBufferedImageTypeIntARGBPre(image, graphics2d, Color.red, 1.00f); + } + + /** * Entry point to the test suite. * * @param args not used in this case