changeset 664:80a03bc8a019 draft

Added ten tests.
author Pavel Tisnovsky <ptisnovs@redhat.com>
date Tue, 16 Dec 2014 10:10:47 +0100
parents cfbab4f6666b
children 13186a4774f3
files ChangeLog src/org/gfxtest/testsuites/BitBltBufferedImageOp.java
diffstat 2 files changed, 165 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Dec 15 10:29:40 2014 +0100
+++ b/ChangeLog	Tue Dec 16 10:10:47 2014 +0100
@@ -1,3 +1,8 @@
+2014-12-15  Pavel Tisnovsky  <ptisnovs@redhat.com>
+
+	* src/org/gfxtest/testsuites/BitBltBufferedImageOp.java:
+	Added ten tests.
+
 2014-12-15  Pavel Tisnovsky  <ptisnovs@redhat.com>
 
 	* src/org/gfxtest/testsuites/BitBltUsingBgColor.java:
--- a/src/org/gfxtest/testsuites/BitBltBufferedImageOp.java	Mon Dec 15 10:29:40 2014 +0100
+++ b/src/org/gfxtest/testsuites/BitBltBufferedImageOp.java	Tue Dec 16 10:10:47 2014 +0100
@@ -5411,6 +5411,166 @@
     }
 
     /**
+     * Test basic BitBlt operation for buffered image with type {@link BufferedImage#TYPE_BYTE_INDEXED}.
+     *
+     * @param image
+     *            image used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @param rasterOp
+     *            selected raster operation
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    protected TestResult doBitBltVerticalMagentaGradientTypeByteIndexed(TestImage image, Graphics2D graphics2d, BufferedImageOp rasterOp)
+    {
+        return CommonBitmapOperations.doBitBltTestWithVerticalMagentaGradientImage(image, graphics2d, BufferedImage.TYPE_BYTE_INDEXED, rasterOp);
+    }
+
+    /**
+     * Test basic BitBlt operation for buffered image with type {@link BufferedImage#TYPE_BYTE_GRAY}.
+     *
+     * @param image
+     *            image used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @param rasterOp
+     *            selected raster operation
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    protected TestResult doBitBltVerticalMagentaGradientTypeByteGray(TestImage image, Graphics2D graphics2d, BufferedImageOp rasterOp)
+    {
+        return CommonBitmapOperations.doBitBltTestWithVerticalMagentaGradientImage(image, graphics2d, BufferedImage.TYPE_BYTE_GRAY, rasterOp);
+    }
+
+    /**
+     * Test basic BitBlt operation for buffered image with type {@link BufferedImage#TYPE_INT_BGR}.
+     *
+     * @param image
+     *            image used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @param rasterOp
+     *            selected raster operation
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    protected TestResult doBitBltVerticalMagentaGradientTypeIntBGR(TestImage image, Graphics2D graphics2d, BufferedImageOp rasterOp)
+    {
+        return CommonBitmapOperations.doBitBltTestWithVerticalMagentaGradientImage(image, graphics2d, BufferedImage.TYPE_INT_BGR, rasterOp);
+    }
+
+    /**
+     * Test basic BitBlt operation for buffered image with type {@link BufferedImage#TYPE_INT_RGB}.
+     *
+     * @param image
+     *            image used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @param rasterOp
+     *            selected raster operation
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    protected TestResult doBitBltVerticalMagentaGradientTypeIntRGB(TestImage image, Graphics2D graphics2d, BufferedImageOp rasterOp)
+    {
+        return CommonBitmapOperations.doBitBltTestWithVerticalMagentaGradientImage(image, graphics2d, BufferedImage.TYPE_INT_RGB, rasterOp);
+    }
+
+    /**
+     * Test basic BitBlt operation for buffered image with type {@link BufferedImage#TYPE_INT_ARGB}.
+     *
+     * @param image
+     *            image used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @param rasterOp
+     *            selected raster operation
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    protected TestResult doBitBltVerticalMagentaGradientTypeIntARGB(TestImage image, Graphics2D graphics2d, BufferedImageOp rasterOp)
+    {
+        return CommonBitmapOperations.doBitBltTestWithVerticalMagentaGradientImage(image, graphics2d, BufferedImage.TYPE_INT_ARGB, rasterOp);
+    }
+
+    /**
+     * Test basic BitBlt operation for buffered image with type {@link BufferedImage#TYPE_INT_ARGB_PRE}.
+     *
+     * @param image
+     *            image used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @param rasterOp
+     *            selected raster operation
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    protected TestResult doBitBltVerticalMagentaGradientTypeIntARGB_Pre(TestImage image, Graphics2D graphics2d, BufferedImageOp rasterOp)
+    {
+        return CommonBitmapOperations.doBitBltTestWithVerticalMagentaGradientImage(image, graphics2d, BufferedImage.TYPE_INT_ARGB_PRE, rasterOp);
+    }
+
+    /**
+     * Test basic BitBlt operation for buffered image with type {@link BufferedImage#TYPE_USHORT_555_RGB}.
+     *
+     * @param image
+     *            image used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @param rasterOp
+     *            selected raster operation
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    protected TestResult doBitBltVerticalMagentaGradientTypeUshort555RGB(TestImage image, Graphics2D graphics2d, BufferedImageOp rasterOp)
+    {
+        return CommonBitmapOperations.doBitBltTestWithVerticalMagentaGradientImage(image, graphics2d, BufferedImage.TYPE_USHORT_555_RGB, rasterOp);
+    }
+
+    /**
+     * Test basic BitBlt operation for buffered image with type {@link BufferedImage#TYPE_USHORT_565_RGB}.
+     *
+     * @param image
+     *            image used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @param rasterOp
+     *            selected raster operation
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    protected TestResult doBitBltVerticalMagentaGradientTypeUshort565RGB(TestImage image, Graphics2D graphics2d, BufferedImageOp rasterOp)
+    {
+        return CommonBitmapOperations.doBitBltTestWithVerticalMagentaGradientImage(image, graphics2d, BufferedImage.TYPE_USHORT_565_RGB, rasterOp);
+    }
+
+    /**
+     * Test basic BitBlt operation for buffered image with type {@link BufferedImage#TYPE_USHORT_GRAY}.
+     *
+     * @param image
+     *            image used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @param rasterOp
+     *            selected raster operation
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    protected TestResult doBitBltVerticalMagentaGradientTypeUshortGray(TestImage image, Graphics2D graphics2d, BufferedImageOp rasterOp)
+    {
+        return CommonBitmapOperations.doBitBltTestWithVerticalMagentaGradientImage(image, graphics2d, BufferedImage.TYPE_USHORT_GRAY, rasterOp);
+    }
+
+    /**
+     * Test basic BitBlt operation for buffered image with type {@link BufferedImage#TYPE_3BYTE_BGR}.
+     *
+     * @param image
+     *            image used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @param rasterOp
+     *            selected raster operation
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    protected TestResult doBitBltHorizontalYellowGradientType3ByteBGR(TestImage image, Graphics2D graphics2d, BufferedImageOp rasterOp)
+    {
+        return CommonBitmapOperations.doBitBltTestWithHorizontalYellowGradientImage(image, graphics2d, BufferedImage.TYPE_3BYTE_BGR, rasterOp);
+    }
+
+    /**
      * Entry point to the test suite.
      *
      * @param args not used in this case