/hg/gfx-test: One helper method and eight new tests added into B...

ptisnovs at icedtea.classpath.org ptisnovs at icedtea.classpath.org
Tue Jun 4 00:53:46 PDT 2013


changeset b80631955f1a in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=b80631955f1a
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Tue Jun 04 09:57:12 2013 +0200

	One helper method and eight new tests added into BitBltConvolveOp.


diffstat:

 ChangeLog                                        |    5 +
 src/org/gfxtest/testsuites/BitBltConvolveOp.java |  129 +++++++++++++++++++++++
 2 files changed, 134 insertions(+), 0 deletions(-)

diffs (158 lines):

diff -r ed8160c7efb3 -r b80631955f1a ChangeLog
--- a/ChangeLog	Mon Jun 03 10:14:37 2013 +0200
+++ b/ChangeLog	Tue Jun 04 09:57:12 2013 +0200
@@ -1,3 +1,8 @@
+2013-06-04  Pavel Tisnovsky  <ptisnovs at redhat.com>
+
+	* src/org/gfxtest/testsuites/BitBltConvolveOp.java:
+	One helper method and eight new tests added into BitBltConvolveOp.
+
 2013-06-03  Pavel Tisnovsky  <ptisnovs at redhat.com>
 
 	* src/org/gfxtest/testsuites/ClippingCircleByRectangleShape.java:
diff -r ed8160c7efb3 -r b80631955f1a src/org/gfxtest/testsuites/BitBltConvolveOp.java
--- a/src/org/gfxtest/testsuites/BitBltConvolveOp.java	Mon Jun 03 10:14:37 2013 +0200
+++ b/src/org/gfxtest/testsuites/BitBltConvolveOp.java	Tue Jun 04 09:57:12 2013 +0200
@@ -150,6 +150,23 @@
     }
 
     /**
+     * Test basic BitBlt operation for empty buffered image with type TYPE_4BYTE_ABGR
+     *
+     * @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
+     */
+    private TestResult doBitBltEmptyBufferedImageType4ByteABGR(TestImage image, Graphics2D graphics2d,
+                    BufferedImageOp rasterOp)
+    {
+        return CommonBitmapOperations.doBitBltTestWithEmptyImage(image, graphics2d, BufferedImage.TYPE_4BYTE_ABGR, rasterOp);
+    }
+
+    /**
      * Test basic BitBlt operation for buffered image containing checker pattern
      * with type TYPE_3BYTE_BGR
      * 
@@ -334,6 +351,118 @@
     }
 
     /**
+     * Test basic BitBlt operation for empty buffered image with type TYPE_4BYTE_ABGR.
+     *
+     * @param image
+     *            image used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testBitBltEmptyBufferedImageType4ByteABGRbackgroundNoOpKernel1x1ROP(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageType4ByteABGR(image, graphics2d, noopKernel1x1ROP);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type TYPE_4BYTE_ABGR.
+     *
+     * @param image
+     *            image used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testBitBltEmptyBufferedImageType4ByteABGRbackgroundNoOpKernel3x3ROP(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageType4ByteABGR(image, graphics2d, noopKernel3x3ROP);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type TYPE_4BYTE_ABGR.
+     *
+     * @param image
+     *            image used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testBitBltEmptyBufferedImageType4ByteABGRbackgroundNoOpKernel5x5ROP(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageType4ByteABGR(image, graphics2d, noopKernel5x5ROP);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type TYPE_4BYTE_ABGR.
+     *
+     * @param image
+     *            image used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testBitBltEmptyBufferedImageType4ByteABGRbackgroundSmoothingKernel2x2ROP(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageType4ByteABGR(image, graphics2d, smoothingKernel2x2ROP);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type TYPE_4BYTE_ABGR.
+     *
+     * @param image
+     *            image used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testBitBltEmptyBufferedImageType4ByteABGRbackgroundSmoothingKernel2x23x3ROP(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageType4ByteABGR(image, graphics2d, smoothingKernel3x3ROP);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type TYPE_4BYTE_ABGR.
+     *
+     * @param image
+     *            image used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testBitBltEmptyBufferedImageType4ByteABGRbackgroundSmoothingKernel2x25x5ROP(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageType4ByteABGR(image, graphics2d, smoothingKernel5x5ROP);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type TYPE_4BYTE_ABGR.
+     *
+     * @param image
+     *            image used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testBitBltEmptyBufferedImageType4ByteABGRbackgroundSobelOperatorGxROP(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageType4ByteABGR(image, graphics2d, sobelOperatorGxROP);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type TYPE_4BYTE_ABGR.
+     *
+     * @param image
+     *            image used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testBitBltEmptyBufferedImageType4ByteABGRbackgroundSobelOperatorGyROP(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageType4ByteABGR(image, graphics2d, sobelOperatorGyROP);
+    }
+
+    /**
      * Test basic BitBlt operation for checker buffered image with type TYPE_3BYTE_BGR.
      *
      * @param image



More information about the distro-pkg-dev mailing list