/hg/gfx-test: Added five new tests and updated javadoc in the test

ptisnovs at icedtea.classpath.org ptisnovs at icedtea.classpath.org
Tue Oct 2 00:26:53 PDT 2012


changeset fc16baaaeee4 in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=fc16baaaeee4
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Tue Oct 02 09:29:36 2012 +0200

	Added five new tests and updated javadoc in the test
	src/org/gfxtest/testsuites/BitBltCropImage.java.


diffstat:

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

diffs (183 lines):

diff -r 243a51c7b2ad -r fc16baaaeee4 ChangeLog
--- a/ChangeLog	Mon Oct 01 10:29:42 2012 +0200
+++ b/ChangeLog	Tue Oct 02 09:29:36 2012 +0200
@@ -1,3 +1,8 @@
+2012-10-02  Pavel Tisnovsky  <ptisnovs at redhat.com>
+
+	* src/org/gfxtest/testsuites/BitBltCropImage.java:
+	Added five new tests, updated javadoc.
+
 2012-10-01  Pavel Tisnovsky  <ptisnovs at redhat.com>
 
 	* src/org/gfxtest/testsuites/BitBltBasicTests.java:
diff -r 243a51c7b2ad -r fc16baaaeee4 src/org/gfxtest/testsuites/BitBltCropImage.java
--- a/src/org/gfxtest/testsuites/BitBltCropImage.java	Mon Oct 01 10:29:42 2012 +0200
+++ b/src/org/gfxtest/testsuites/BitBltCropImage.java	Tue Oct 02 09:29:36 2012 +0200
@@ -94,6 +94,7 @@
      */
     public TestResult testBitBltCheckerBufferedImageTypeByteBinaryNoCrop(TestImage image, Graphics2D graphics2d)
     {
+        // create new buffered image and then perform BitBlt test using crop operation.
         return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_BYTE_BINARY);
     }
 
@@ -109,6 +110,7 @@
      */
     public TestResult testBitBltCheckerBufferedImageTypeByteBinaryCropNW(TestImage image, Graphics2D graphics2d)
     {
+        // create new buffered image and then perform BitBlt test using crop operation.
         return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_BYTE_BINARY,
                         BitmapCropRegions.CROP_REGION_NW);
     }
@@ -125,6 +127,7 @@
      */
     public TestResult testBitBltCheckerBufferedImageTypeByteBinaryCropNE(TestImage image, Graphics2D graphics2d)
     {
+        // create new buffered image and then perform BitBlt test using crop operation.
         return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_BYTE_BINARY,
                         BitmapCropRegions.CROP_REGION_NE);
     }
@@ -141,6 +144,7 @@
      */
     public TestResult testBitBltCheckerBufferedImageTypeByteBinaryCropSW(TestImage image, Graphics2D graphics2d)
     {
+        // create new buffered image and then perform BitBlt test using crop operation.
         return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_BYTE_BINARY,
                         BitmapCropRegions.CROP_REGION_SW);
     }
@@ -157,6 +161,7 @@
      */
     public TestResult testBitBltCheckerBufferedImageTypeByteBinaryCropSE(TestImage image, Graphics2D graphics2d)
     {
+        // create new buffered image and then perform BitBlt test using crop operation.
         return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_BYTE_BINARY,
                         BitmapCropRegions.CROP_REGION_SE);
     }
@@ -172,6 +177,7 @@
      */
     public TestResult testBitBltCheckerBufferedImageTypeIntRGBNoCrop(TestImage image, Graphics2D graphics2d)
     {
+        // create new buffered image and then perform BitBlt test using crop operation.
         return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_INT_RGB);
     }
 
@@ -187,6 +193,7 @@
      */
     public TestResult testBitBltCheckerBufferedImageTypeIntRGBCropNW(TestImage image, Graphics2D graphics2d)
     {
+        // create new buffered image and then perform BitBlt test using crop operation.
         return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_INT_RGB,
                         BitmapCropRegions.CROP_REGION_NW);
     }
@@ -203,6 +210,7 @@
      */
     public TestResult testBitBltCheckerBufferedImageTypeIntRGBCropNE(TestImage image, Graphics2D graphics2d)
     {
+        // create new buffered image and then perform BitBlt test using crop operation.
         return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_INT_RGB,
                         BitmapCropRegions.CROP_REGION_NE);
     }
@@ -219,6 +227,7 @@
      */
     public TestResult testBitBltCheckerBufferedImageTypeIntRGBCropSW(TestImage image, Graphics2D graphics2d)
     {
+        // create new buffered image and then perform BitBlt test using crop operation.
         return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_INT_RGB,
                         BitmapCropRegions.CROP_REGION_SW);
     }
@@ -235,11 +244,95 @@
      */
     public TestResult testBitBltCheckerBufferedImageTypeIntRGBCropSE(TestImage image, Graphics2D graphics2d)
     {
+        // create new buffered image and then perform BitBlt test using crop operation.
         return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_INT_RGB,
                         BitmapCropRegions.CROP_REGION_SE);
     }
 
     /**
+     * Test basic BitBlt operation for checker buffered image with type TYPE_3BYTE_BGR.
+     * No crop is performed to that image.
+     * @param image
+     *            image to which line is to be drawn
+     * @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 to which line is to be drawn
+     * @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 to which line is to be drawn
+     * @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 to which line is to be drawn
+     * @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 to which line is to be drawn
+     * @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);
+    }
+
+    /**
      * Entry point to the test suite.
      * 
      * @param args



More information about the distro-pkg-dev mailing list