changeset 766:ce01d2dcd8fb draft

Five new tests added into BitBltUsingBgColorAlpha.java.
author Pavel Tisnovsky <ptisnovs@redhat.com>
date Wed, 07 Oct 2015 13:25:22 +0200
parents 7c8d5e1adde8
children 2e948f5f9468
files ChangeLog src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java
diffstat 2 files changed, 81 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Oct 06 12:54:57 2015 +0200
+++ b/ChangeLog	Wed Oct 07 13:25:22 2015 +0200
@@ -1,4 +1,9 @@
-2015-10-05  Pavel Tisnovsky  <ptisnovs@redhat.com>
+2015-10-07  Pavel Tisnovsky  <ptisnovs@redhat.com>
+
+	* src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java:
+	Five new tests added into BitBltUsingBgColorAlpha.java.
+
+2015-10-06  Pavel Tisnovsky  <ptisnovs@redhat.com>
 
 	* src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java:
 	Five new tests added into BitBltUsingBgColorAlpha.java.
--- a/src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java	Tue Oct 06 12:54:57 2015 +0200
+++ b/src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java	Wed Oct 07 13:25:22 2015 +0200
@@ -2308,6 +2308,81 @@
     }
 
     /**
+     * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_ARGB}.
+     * Background color is set to Color.green.
+     *
+     * @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 testBitBltEmptyBufferedImageTypeIntARGBbackgroundGreenAlpha000(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageTypeIntARGB(image, graphics2d, Color.green, 0.0f);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_ARGB}.
+     * Background color is set to Color.green.
+     *
+     * @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 testBitBltEmptyBufferedImageTypeIntARGBbackgroundGreenAlpha025(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageTypeIntARGB(image, graphics2d, Color.green, 0.25f);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_ARGB}.
+     * Background color is set to Color.green.
+     *
+     * @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 testBitBltEmptyBufferedImageTypeIntARGBbackgroundGreenAlpha050(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageTypeIntARGB(image, graphics2d, Color.green, 0.5f);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_ARGB}.
+     * Background color is set to Color.green.
+     *
+     * @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 testBitBltEmptyBufferedImageTypeIntARGBbackgroundGreenAlpha075(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageTypeIntARGB(image, graphics2d, Color.green, 0.75f);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_ARGB}.
+     * Background color is set to Color.green.
+     *
+     * @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 testBitBltEmptyBufferedImageTypeIntARGBbackgroundGreenAlpha100(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageTypeIntARGB(image, graphics2d, Color.green, 1.00f);
+    }
+
+    /**
      * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_ARGB_PRE}.
      * Background color is set to Color.black.
      *