changeset 780:b1ed3af245d0 draft

Five new tests added into BitBltUsingBgColorAlpha.
author Pavel Tisnovsky <ptisnovs@redhat.com>
date Wed, 11 Nov 2015 10:55:20 +0100
parents dedf058d1edf
children b4a2dacb4674
files ChangeLog src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java
diffstat 2 files changed, 80 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Nov 10 16:40:09 2015 +0100
+++ b/ChangeLog	Wed Nov 11 10:55:20 2015 +0100
@@ -1,3 +1,8 @@
+2015-11-11  Pavel Tisnovsky  <ptisnovs@redhat.com>
+
+	* src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java:
+	Five new tests added into BitBltUsingBgColorAlpha.
+
 2015-11-10  Pavel Tisnovsky  <ptisnovs@redhat.com>
 
 	* src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java:
--- a/src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java	Tue Nov 10 16:40:09 2015 +0100
+++ b/src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java	Wed Nov 11 10:55:20 2015 +0100
@@ -3133,6 +3133,81 @@
     }
 
     /**
+     * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_BGR}.
+     * 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 testBitBltEmptyBufferedImageTypeIntBGRBackgroundGreenAlpha000(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageTypeIntBGR(image, graphics2d, Color.green, 0.0f);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_BGR}.
+     * 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 testBitBltEmptyBufferedImageTypeIntBGRBackgroundGreenAlpha025(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageTypeIntBGR(image, graphics2d, Color.green, 0.25f);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_BGR}.
+     * 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 testBitBltEmptyBufferedImageTypeIntBGRBackgroundGreenAlpha050(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageTypeIntBGR(image, graphics2d, Color.green, 0.5f);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_BGR}.
+     * 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 testBitBltEmptyBufferedImageTypeIntBGRBackgroundGreenAlpha075(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageTypeIntBGR(image, graphics2d, Color.green, 0.75f);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type {@link BufferedImage#TYPE_INT_BGR}.
+     * 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 testBitBltEmptyBufferedImageTypeIntBGRBackgroundGreenAlpha100(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageTypeIntBGR(image, graphics2d, Color.green, 1.00f);
+    }
+
+    /**
      * Entry point to the test suite.
      *
      * @param args not used in this case