Mercurial > hg > gfx-test
changeset 801:88e596b277c4 draft
Added five new tests into BitBltUsingBgColorAlpha.
author | Pavel Tisnovsky <ptisnovs@redhat.com> |
---|---|
date | Fri, 12 Feb 2016 11:40:24 +0100 |
parents | 1a1eddab7dcb |
children | e33f9e5e5e92 |
files | ChangeLog src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java |
diffstat | 2 files changed, 80 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Thu Feb 11 13:16:56 2016 +0100 +++ b/ChangeLog Fri Feb 12 11:40:24 2016 +0100 @@ -1,3 +1,8 @@ +2016-02-12 Pavel Tisnovsky <ptisnovs@redhat.com> + + * src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java: + Added five new tests into BitBltUsingBgColorAlpha. + 2016-02-11 Pavel Tisnovsky <ptisnovs@redhat.com> * src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java:
--- a/src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java Thu Feb 11 13:16:56 2016 +0100 +++ b/src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java Fri Feb 12 11:40:24 2016 +0100 @@ -3283,6 +3283,81 @@ } /** + * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_BGR}. + * Background color is set to Color.cyan. + * + * @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 testBitBltEmptyBufferedImageTypeIntBGRBackgroundCyanAlpha000(TestImage image, Graphics2D graphics2d) + { + return doBitBltEmptyBufferedImageTypeIntBGR(image, graphics2d, Color.cyan, 0.0f); + } + + /** + * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_BGR}. + * Background color is set to Color.cyan. + * + * @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 testBitBltEmptyBufferedImageTypeIntBGRBackgroundCyanAlpha025(TestImage image, Graphics2D graphics2d) + { + return doBitBltEmptyBufferedImageTypeIntBGR(image, graphics2d, Color.cyan, 0.25f); + } + + /** + * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_BGR}. + * Background color is set to Color.cyan. + * + * @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 testBitBltEmptyBufferedImageTypeIntBGRBackgroundCyanAlpha050(TestImage image, Graphics2D graphics2d) + { + return doBitBltEmptyBufferedImageTypeIntBGR(image, graphics2d, Color.cyan, 0.5f); + } + + /** + * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_BGR}. + * Background color is set to Color.cyan. + * + * @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 testBitBltEmptyBufferedImageTypeIntBGRBackgroundCyanAlpha075(TestImage image, Graphics2D graphics2d) + { + return doBitBltEmptyBufferedImageTypeIntBGR(image, graphics2d, Color.cyan, 0.75f); + } + + /** + * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_BGR}. + * Background color is set to Color.cyan. + * + * @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 testBitBltEmptyBufferedImageTypeIntBGRBackgroundCyanAlpha100(TestImage image, Graphics2D graphics2d) + { + return doBitBltEmptyBufferedImageTypeIntBGR(image, graphics2d, Color.cyan, 1.00f); + } + + /** * Entry point to the test suite. * * @param args not used in this case