changeset 805:dc2b86ed8c86 draft

Added five new tests into BitBltUsingBgColorAlpha.
author Pavel Tisnovsky <ptisnovs@redhat.com>
date Wed, 09 Mar 2016 11:22:27 +0100
parents 2085510c58b9
children f6d20ead5a1b
files ChangeLog src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java
diffstat 2 files changed, 80 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Mar 07 13:32:38 2016 +0100
+++ b/ChangeLog	Wed Mar 09 11:22:27 2016 +0100
@@ -1,3 +1,8 @@
+2016-03-09  Pavel Tisnovsky  <ptisnovs@redhat.com>
+
+	* src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java:
+	Added five new tests into BitBltUsingBgColorAlpha.
+
 2016-03-07  Pavel Tisnovsky  <ptisnovs@redhat.com>
 
 	* src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java:
--- a/src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java	Mon Mar 07 13:32:38 2016 +0100
+++ b/src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java	Wed Mar 09 11:22:27 2016 +0100
@@ -3208,6 +3208,81 @@
     }
 
     /**
+     * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_ARGB_PRE}.
+     * 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 testBitBltEmptyBufferedImageTypeIntARGBPreBackgroundWhiteAlpha000(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageTypeIntARGBPre(image, graphics2d, Color.white, 0.0f);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_ARGB_PRE}.
+     * 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 testBitBltEmptyBufferedImageTypeIntARGBPreBackgroundWhiteAlpha025(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageTypeIntARGBPre(image, graphics2d, Color.white, 0.25f);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_ARGB_PRE}.
+     * 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 testBitBltEmptyBufferedImageTypeIntARGBPreBackgroundWhiteAlpha050(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageTypeIntARGBPre(image, graphics2d, Color.white, 0.5f);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_ARGB_PRE}.
+     * 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 testBitBltEmptyBufferedImageTypeIntARGBPreBackgroundWhiteAlpha075(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageTypeIntARGBPre(image, graphics2d, Color.white, 0.75f);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_ARGB_PRE}.
+     * 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 testBitBltEmptyBufferedImageTypeIntARGBPreBackgroundWhiteAlpha100(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageTypeIntARGBPre(image, graphics2d, Color.white, 1.00f);
+    }
+
+    /**
      * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_BGR}.
      * Background color is set to Color.black.
      *