/hg/gfx-test: Added five new tests into BitBltUsingBgColorAlpha.

ptisnovs at icedtea.classpath.org ptisnovs at icedtea.classpath.org
Tue Jun 11 03:38:15 PDT 2013


changeset 2f1b8da1d25c in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=2f1b8da1d25c
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Tue Jun 11 12:40:44 2013 +0200

	Added five new tests into BitBltUsingBgColorAlpha.


diffstat:

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

diffs (97 lines):

diff -r f9f7b283f2df -r 2f1b8da1d25c ChangeLog
--- a/ChangeLog	Mon Jun 10 09:28:04 2013 +0200
+++ b/ChangeLog	Tue Jun 11 12:40:44 2013 +0200
@@ -1,3 +1,8 @@
+2013-06-11  Pavel Tisnovsky  <ptisnovs at redhat.com>
+
+	* src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java:
+	Added five new tests into BitBltUsingBgColorAlpha.
+
 2013-06-10  Pavel Tisnovsky  <ptisnovs at redhat.com>
 
 	* src/org/gfxtest/testsuites/BitBltUsingBgColor.java:
diff -r f9f7b283f2df -r 2f1b8da1d25c src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java
--- a/src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java	Mon Jun 10 09:28:04 2013 +0200
+++ b/src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java	Tue Jun 11 12:40:44 2013 +0200
@@ -1333,6 +1333,81 @@
     }
 
     /**
+     * Test basic BitBlt operation for empty buffered image with type TYPE_INT_ARGB_PRE.
+     * Background color is set to Color.black.
+     *
+     * @param image
+     *            image to used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testBitBltEmptyBufferedImageTypeIntARGBPreBackgroundBlackAlpha000(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageTypeIntARGBPre(image, graphics2d, Color.black, 0.0f);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type TYPE_INT_ARGB_PRE.
+     * Background color is set to Color.black.
+     *
+     * @param image
+     *            image to used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testBitBltEmptyBufferedImageTypeIntARGBPreBackgroundBlackAlpha025(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageTypeIntARGBPre(image, graphics2d, Color.black, 0.25f);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type TYPE_INT_ARGB_PRE.
+     * Background color is set to Color.black.
+     *
+     * @param image
+     *            image to used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testBitBltEmptyBufferedImageTypeIntARGBPreBackgroundBlackAlpha050(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageTypeIntARGBPre(image, graphics2d, Color.black, 0.5f);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type TYPE_INT_ARGB_PRE.
+     * Background color is set to Color.black.
+     *
+     * @param image
+     *            image to used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testBitBltEmptyBufferedImageTypeIntARGBPreBackgroundBlackAlpha075(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageTypeIntARGBPre(image, graphics2d, Color.black, 0.75f);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type TYPE_INT_ARGB_PRE.
+     * Background color is set to Color.black.
+     *
+     * @param image
+     *            image to used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testBitBltEmptyBufferedImageTypeIntARGBPreBackgroundBlackAlpha100(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageTypeIntARGBPre(image, graphics2d, Color.black, 1.00f);
+    }
+
+    /**
      * Entry point to the test suite.
      *
      * @param args not used in this case



More information about the distro-pkg-dev mailing list