/hg/gfx-test: New tests added to the test suite

ptisnovs at icedtea.classpath.org ptisnovs at icedtea.classpath.org
Wed Nov 21 04:09:48 PST 2012


changeset ed3de89b5f79 in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=ed3de89b5f79
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Wed Nov 21 13:12:47 2012 +0100

	New tests added to the test suite
	src/org/gfxtest/testsuites/BitBltBasicTests.java.


diffstat:

 ChangeLog                                        |    5 +
 src/org/gfxtest/testsuites/BitBltBasicTests.java |  165 +++++++++++++++++++++++
 2 files changed, 170 insertions(+), 0 deletions(-)

diffs (187 lines):

diff -r 1f011b5b03b9 -r ed3de89b5f79 ChangeLog
--- a/ChangeLog	Tue Nov 20 10:00:28 2012 +0100
+++ b/ChangeLog	Wed Nov 21 13:12:47 2012 +0100
@@ -1,3 +1,8 @@
+2012-11-21  Pavel Tisnovsky  <ptisnovs at redhat.com>
+
+	* src/org/gfxtest/testsuites/BitBltBasicTests.java:
+	Added new tests.
+
 2012-11-20  Pavel Tisnovsky  <ptisnovs at redhat.com>
 
 	* src/org/gfxtest/testsuites/BitBltBasicTests.java:
diff -r 1f011b5b03b9 -r ed3de89b5f79 src/org/gfxtest/testsuites/BitBltBasicTests.java
--- a/src/org/gfxtest/testsuites/BitBltBasicTests.java	Tue Nov 20 10:00:28 2012 +0100
+++ b/src/org/gfxtest/testsuites/BitBltBasicTests.java	Wed Nov 21 13:12:47 2012 +0100
@@ -1900,6 +1900,171 @@
     }
 
     /**
+     * Test basic BitBlt operation for diagonal color stripes buffered image with type TYPE_INT_RGB.
+     *
+     * @param image
+     *            image to used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testBitBltDiagonalColorStripesBufferedImageTypeIntRGB(TestImage image, Graphics2D graphics2d)
+    {
+        // create new buffered image and then perform basic BitBlt test.
+        return CommonBitmapOperations.doBitBltTestWithDiagonalColorStripesImage(image, graphics2d, BufferedImage.TYPE_INT_RGB);
+    }
+
+    /**
+     * Test basic BitBlt operation for diagonal color stripes buffered image with type TYPE_INT_BGR.
+     *
+     * @param image
+     *            image to used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testBitBltDiagonalColorStripesBufferedImageTypeIntBGR(TestImage image, Graphics2D graphics2d)
+    {
+        // create new buffered image and then perform basic BitBlt test.
+        return CommonBitmapOperations.doBitBltTestWithDiagonalColorStripesImage(image, graphics2d, BufferedImage.TYPE_INT_BGR);
+    }
+
+    /**
+     * Test basic BitBlt operation for diagonal color stripes buffered image with type TYPE_INT_ARGB.
+     *
+     * @param image
+     *            image to used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testBitBltDiagonalColorStripesBufferedImageTypeIntARGB(TestImage image, Graphics2D graphics2d)
+    {
+        // create new buffered image and then perform basic BitBlt test.
+        return CommonBitmapOperations.doBitBltTestWithDiagonalColorStripesImage(image, graphics2d, BufferedImage.TYPE_INT_ARGB);
+    }
+
+    /**
+     * Test basic BitBlt operation for diagonal color stripes buffered image with type TYPE_INT_ARGB_PRE.
+     *
+     * @param image
+     *            image to used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testBitBltDiagonalColorStripesBufferedImageTypeIntARGB_Pre(TestImage image, Graphics2D graphics2d)
+    {
+        // create new buffered image and then perform basic BitBlt test.
+        return CommonBitmapOperations.doBitBltTestWithDiagonalColorStripesImage(image, graphics2d, BufferedImage.TYPE_INT_ARGB_PRE);
+    }
+
+    /**
+     * Test basic BitBlt operation for diagonal color stripes buffered image with type TYPE_4BYTE_ABGR.
+     *
+     * @param image
+     *            image to used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testBitBltDiagonalColorStripesBufferedImageType4ByteABGR(TestImage image, Graphics2D graphics2d)
+    {
+        // create new buffered image and then perform basic BitBlt test.
+        return CommonBitmapOperations.doBitBltTestWithDiagonalColorStripesImage(image, graphics2d, BufferedImage.TYPE_4BYTE_ABGR);
+    }
+
+    /**
+     * Test basic BitBlt operation for diagonal color stripes buffered image with type TYPE_4BYTE_ABGR_PRE.
+     *
+     * @param image
+     *            image to used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testBitBltDiagonalColorStripesBufferedImageType4ByteABGR_PRE(TestImage image, Graphics2D graphics2d)
+    {
+        // create new buffered image and then perform basic BitBlt test.
+        return CommonBitmapOperations.doBitBltTestWithDiagonalColorStripesImage(image, graphics2d, BufferedImage.TYPE_4BYTE_ABGR_PRE);
+    }
+
+    /**
+     * Test basic BitBlt operation for diagonal color stripes buffered image with type TYPE_BYTE_GRAY.
+     *
+     * @param image
+     *            image to used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testBitBltDiagonalColorStripesBufferedImageTypeByteGray(TestImage image, Graphics2D graphics2d)
+    {
+        // create new buffered image and then perform basic BitBlt test.
+        return CommonBitmapOperations.doBitBltTestWithDiagonalColorStripesImage(image, graphics2d, BufferedImage.TYPE_BYTE_GRAY);
+    }
+
+    /**
+     * Test basic BitBlt operation for diagonal color stripes buffered image with type TYPE_USHORT_GRAY.
+     *
+     * @param image
+     *            image to used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testBitBltDiagonalColorStripesBufferedImageTypeUshortGray(TestImage image, Graphics2D graphics2d)
+    {
+        // create new buffered image and then perform basic BitBlt test.
+        return CommonBitmapOperations.doBitBltTestWithDiagonalColorStripesImage(image, graphics2d, BufferedImage.TYPE_USHORT_GRAY);
+    }
+
+    /**
+     * Test basic BitBlt operation for diagonal color stripes buffered image with type TYPE_USHORT_565_RGB.
+     *
+     * @param image
+     *            image to used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testBitBltDiagonalColorStripesBufferedImageTypeUshort565RGB(TestImage image, Graphics2D graphics2d)
+    {
+        // create new buffered image and then perform basic BitBlt test.
+        return CommonBitmapOperations.doBitBltTestWithDiagonalColorStripesImage(image, graphics2d, BufferedImage.TYPE_USHORT_565_RGB);
+    }
+
+    /**
+     * Test basic BitBlt operation for diagonal color stripes buffered image with type TYPE_USHORT_555_RGB.
+     *
+     * @param image
+     *            image to used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testBitBltDiagonalColorStripesBufferedImageTypeUshort555RGB(TestImage image, Graphics2D graphics2d)
+    {
+        // create new buffered image and then perform basic BitBlt test.
+        return CommonBitmapOperations.doBitBltTestWithDiagonalColorStripesImage(image, graphics2d, BufferedImage.TYPE_USHORT_555_RGB);
+    }
+
+    /**
+     * Test basic BitBlt operation for diagonal color stripes buffered image with type TYPE_3BYTE_BGR.
+     *
+     * @param image
+     *            image to used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testBitBltDiagonalColorStripesBufferedImageType3ByteBGR(TestImage image, Graphics2D graphics2d)
+    {
+        // create new buffered image and then perform basic BitBlt test.
+        return CommonBitmapOperations.doBitBltTestWithDiagonalColorStripesImage(image, graphics2d, BufferedImage.TYPE_3BYTE_BGR);
+    }
+
+    /**
      * Test basic BitBlt operation for black and white dots pattern buffered image
      * with type TYPE_BYTE_BINARY.
      * 



More information about the distro-pkg-dev mailing list