/hg/gfx-test: Added five new tests into BitBltCropImage.

ptisnovs at icedtea.classpath.org ptisnovs at icedtea.classpath.org
Wed Jun 5 01:24:58 PDT 2013


changeset 423cbdb30284 in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=423cbdb30284
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Wed Jun 05 10:28:26 2013 +0200

	Added five new tests into BitBltCropImage.


diffstat:

 ChangeLog                                       |   5 +
 src/org/gfxtest/testsuites/BitBltCropImage.java |  98 +++++++++++++++++++++++++
 2 files changed, 103 insertions(+), 0 deletions(-)

diffs (120 lines):

diff -r b80631955f1a -r 423cbdb30284 ChangeLog
--- a/ChangeLog	Tue Jun 04 09:57:12 2013 +0200
+++ b/ChangeLog	Wed Jun 05 10:28:26 2013 +0200
@@ -1,3 +1,8 @@
+2013-06-05  Pavel Tisnovsky  <ptisnovs at redhat.com>
+
+	* src/org/gfxtest/testsuites/BitBltCropImage.java:
+	Added five new tests into BitBltCropImage.
+
 2013-06-04  Pavel Tisnovsky  <ptisnovs at redhat.com>
 
 	* src/org/gfxtest/testsuites/BitBltConvolveOp.java:
diff -r b80631955f1a -r 423cbdb30284 src/org/gfxtest/testsuites/BitBltCropImage.java
--- a/src/org/gfxtest/testsuites/BitBltCropImage.java	Tue Jun 04 09:57:12 2013 +0200
+++ b/src/org/gfxtest/testsuites/BitBltCropImage.java	Wed Jun 05 10:28:26 2013 +0200
@@ -83,6 +83,104 @@
 {
 
     /**
+     * Test basic BitBlt operation for checker buffered image with type TYPE_3BYTE_BGR.
+     * No crop is performed to that image.
+     * @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 testBitBltCheckerBufferedImageType3ByteBGRNoCrop(TestImage image, Graphics2D graphics2d)
+    {
+        // create new buffered image and then perform BitBlt test using crop operation.
+        return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_3BYTE_BGR);
+    }
+
+    /**
+     * Test basic BitBlt operation for checker buffered image with type
+     * TYPE_3BYTE_BGR. Image is cropped so only north-west quarter of it is rendered.
+     * 
+     * @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 testBitBltCheckerBufferedImageType3ByteBGRCropNW(TestImage image, Graphics2D graphics2d)
+    {
+        // create new buffered image and then perform BitBlt test using crop operation.
+        return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_3BYTE_BGR,
+                        BitmapCropRegions.CROP_REGION_NW);
+    }
+
+    /**
+     * Test basic BitBlt operation for checker buffered image with type
+     * TYPE_3BYTE_BGR. Image is cropped so only north-east quarter of it is rendered.
+     * 
+     * @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 testBitBltCheckerBufferedImageType3ByteBGRCropNE(TestImage image, Graphics2D graphics2d)
+    {
+        // create new buffered image and then perform BitBlt test using crop operation.
+        return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_3BYTE_BGR,
+                        BitmapCropRegions.CROP_REGION_NE);
+    }
+
+    /**
+     * Test basic BitBlt operation for checker buffered image with type
+     * TYPE_3BYTE_BGR. Image is cropped so only south-west quarter of it is rendered.
+     * 
+     * @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 testBitBltCheckerBufferedImageType3ByteBGRCropSW(TestImage image, Graphics2D graphics2d)
+    {
+        // create new buffered image and then perform BitBlt test using crop operation.
+        return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_3BYTE_BGR,
+                        BitmapCropRegions.CROP_REGION_SW);
+    }
+
+    /**
+     * Test basic BitBlt operation for checker buffered image with type
+     * TYPE_3BYTE_BGR. Image is cropped so only south-east quarter of it is rendered.
+     * 
+     * @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 testBitBltCheckerBufferedImageType3ByteBGRCropSE(TestImage image, Graphics2D graphics2d)
+    {
+        // create new buffered image and then perform BitBlt test using crop operation.
+        return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_3BYTE_BGR,
+                        BitmapCropRegions.CROP_REGION_SE);
+    }
+
+    /**
+     * Test basic BitBlt operation for checker buffered image with type TYPE_4BYTE_ABGR.
+     * No crop is performed to that image.
+     * @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 testBitBltCheckerBufferedImageType4ByteABGRNoCrop(TestImage image, Graphics2D graphics2d)
+    {
+        // create new buffered image and then perform BitBlt test using crop operation.
+        return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_4BYTE_ABGR);
+    }
+
+    /**
      * Test basic BitBlt operation for checker buffered image with type
      * TYPE_BYTE_BINARY. No crop is performed to that image.
      * 



More information about the distro-pkg-dev mailing list