/hg/gfx-test: Ten new tests added into BitBltUsingBgColorAlpha.

ptisnovs at icedtea.classpath.org ptisnovs at icedtea.classpath.org
Mon Apr 14 08:00:30 UTC 2014


changeset b5d1d02925ea in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=b5d1d02925ea
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Mon Apr 14 10:01:07 2014 +0200

	Ten new tests added into BitBltUsingBgColorAlpha.


diffstat:

 ChangeLog                                               |    5 +
 src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java |  150 ++++++++++++++++
 2 files changed, 155 insertions(+), 0 deletions(-)

diffs (172 lines):

diff -r 0729e0676d9c -r b5d1d02925ea ChangeLog
--- a/ChangeLog	Fri Apr 11 11:19:00 2014 +0200
+++ b/ChangeLog	Mon Apr 14 10:01:07 2014 +0200
@@ -1,3 +1,8 @@
+2014-04-14  Pavel Tisnovsky  <ptisnovs at redhat.com>
+
+	* src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java:
+	Ten new tests added into BitBltUsingBgColorAlpha.
+
 2014-04-11  Pavel Tisnovsky  <ptisnovs at redhat.com>
 
 	* src/org/gfxtest/testsuites/BitBltBufferedImageOp.java:
diff -r 0729e0676d9c -r b5d1d02925ea src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java
--- a/src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java	Fri Apr 11 11:19:00 2014 +0200
+++ b/src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java	Mon Apr 14 10:01:07 2014 +0200
@@ -2008,6 +2008,156 @@
     }
 
     /**
+     * Test basic BitBlt operation for empty buffered image with type TYPE_4BYTE_ABGR.
+     * Background color is set to Color.magenta.
+     *
+     * @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 testBitBltEmptyBufferedImageType4ByteABGRPrebackgroundMagentaAlpha000(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageType4ByteABGRPre(image, graphics2d, Color.magenta, 0.0f);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type TYPE_4BYTE_ABGR.
+     * Background color is set to Color.magenta.
+     *
+     * @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 testBitBltEmptyBufferedImageType4ByteABGRPrebackgroundMagentaAlpha025(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageType4ByteABGRPre(image, graphics2d, Color.magenta, 0.25f);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type TYPE_4BYTE_ABGR.
+     * Background color is set to Color.magenta.
+     *
+     * @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 testBitBltEmptyBufferedImageType4ByteABGRPrebackgroundMagentaAlpha050(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageType4ByteABGRPre(image, graphics2d, Color.magenta, 0.5f);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type TYPE_4BYTE_ABGR.
+     * Background color is set to Color.magenta.
+     *
+     * @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 testBitBltEmptyBufferedImageType4ByteABGRPrebackgroundMagentaAlpha075(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageType4ByteABGRPre(image, graphics2d, Color.magenta, 0.75f);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type TYPE_4BYTE_ABGR.
+     * Background color is set to Color.magenta.
+     *
+     * @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 testBitBltEmptyBufferedImageType4ByteABGRPrebackgroundMagentaAlpha100(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageType4ByteABGRPre(image, graphics2d, Color.magenta, 1.00f);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type TYPE_4BYTE_ABGR.
+     * Background color is set to Color.white.
+     *
+     * @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 testBitBltEmptyBufferedImageType4ByteABGRPrebackgroundWhiteAlpha000(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageType4ByteABGRPre(image, graphics2d, Color.white, 0.0f);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type TYPE_4BYTE_ABGR.
+     * Background color is set to Color.white.
+     *
+     * @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 testBitBltEmptyBufferedImageType4ByteABGRPrebackgroundWhiteAlpha025(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageType4ByteABGRPre(image, graphics2d, Color.white, 0.25f);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type TYPE_4BYTE_ABGR.
+     * Background color is set to Color.white.
+     *
+     * @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 testBitBltEmptyBufferedImageType4ByteABGRPrebackgroundWhiteAlpha050(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageType4ByteABGRPre(image, graphics2d, Color.white, 0.5f);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type TYPE_4BYTE_ABGR.
+     * Background color is set to Color.white.
+     *
+     * @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 testBitBltEmptyBufferedImageType4ByteABGRPrebackgroundWhiteAlpha075(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageType4ByteABGRPre(image, graphics2d, Color.white, 0.75f);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type TYPE_4BYTE_ABGR.
+     * Background color is set to Color.white.
+     *
+     * @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 testBitBltEmptyBufferedImageType4ByteABGRPrebackgroundWhiteAlpha100(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageType4ByteABGRPre(image, graphics2d, Color.white, 1.00f);
+    }
+
+    /**
      * Test basic BitBlt operation for empty buffered image with type TYPE_INT_ARGB.
      * Background color is set to Color.black.
      *


More information about the distro-pkg-dev mailing list