/hg/gfx-test: Twelve new tests added into the test suite BitBltB...

ptisnovs at icedtea.classpath.org ptisnovs at icedtea.classpath.org
Tue Jan 29 00:55:34 PST 2013


changeset a631f9ef36fb in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=a631f9ef36fb
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Tue Jan 29 09:58:37 2013 +0100

	Twelve new tests added into the test suite BitBltBasicTests.


diffstat:

 ChangeLog                                        |    5 +
 src/org/gfxtest/testsuites/BitBltBasicTests.java |  167 ++++++++++++++++++++++-
 2 files changed, 171 insertions(+), 1 deletions(-)

diffs (196 lines):

diff -r 3463abbeeca5 -r a631f9ef36fb ChangeLog
--- a/ChangeLog	Mon Jan 28 09:54:49 2013 +0100
+++ b/ChangeLog	Tue Jan 29 09:58:37 2013 +0100
@@ -1,3 +1,8 @@
+2013-01-29  Pavel Tisnovsky  <ptisnovs at redhat.com>
+
+	* src/org/gfxtest/testsuites/BitBltBasicTests.java:
+	Twelve new tests added into the test suite BitBltBasicTests.
+
 2013-01-28  Pavel Tisnovsky  <ptisnovs at redhat.com>
 
 	* src/org/gfxtest/framework/ImageFactory.java:
diff -r 3463abbeeca5 -r a631f9ef36fb src/org/gfxtest/testsuites/BitBltBasicTests.java
--- a/src/org/gfxtest/testsuites/BitBltBasicTests.java	Mon Jan 28 09:54:49 2013 +0100
+++ b/src/org/gfxtest/testsuites/BitBltBasicTests.java	Tue Jan 29 09:58:37 2013 +0100
@@ -1,7 +1,7 @@
 /*
   Java gfx-test framework
 
-   Copyright (C) 2010, 2011, 2012  Red Hat
+   Copyright (C) 2010, 2011, 2012, 2013  Red Hat
 
 This file is part of IcedTea.
 
@@ -2444,6 +2444,171 @@
     }
 
     /**
+     * Test basic BitBlt operation for horizontal grayscale gradient buffered image with type TYPE_INT_RGB.
+     *
+     * @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 testBitBltHorizontalGrayscaleGradientBufferedImageTypeIntRGB(TestImage image, Graphics2D graphics2d)
+    {
+        // create new buffered image and then perform basic BitBlt test.
+        return CommonBitmapOperations.doBitBltTestWithHorizontalGrayscaleGradientImage(image, graphics2d, BufferedImage.TYPE_INT_RGB);
+    }
+
+    /**
+     * Test basic BitBlt operation for horizontal grayscale gradient buffered image with type TYPE_INT_BGR.
+     *
+     * @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 testBitBltHorizontalGrayscaleGradientBufferedImageTypeIntBGR(TestImage image, Graphics2D graphics2d)
+    {
+        // create new buffered image and then perform basic BitBlt test.
+        return CommonBitmapOperations.doBitBltTestWithHorizontalGrayscaleGradientImage(image, graphics2d, BufferedImage.TYPE_INT_BGR);
+    }
+
+    /**
+     * Test basic BitBlt operation for horizontal grayscale gradient buffered image with type TYPE_INT_ARGB.
+     *
+     * @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 testBitBltHorizontalGrayscaleGradientBufferedImageTypeIntARGB(TestImage image, Graphics2D graphics2d)
+    {
+        // create new buffered image and then perform basic BitBlt test.
+        return CommonBitmapOperations.doBitBltTestWithHorizontalGrayscaleGradientImage(image, graphics2d, BufferedImage.TYPE_INT_ARGB);
+    }
+
+    /**
+     * Test basic BitBlt operation for horizontal grayscale gradient buffered image with type TYPE_INT_ARGB_PRE.
+     *
+     * @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 testBitBltHorizontalGrayscaleGradientBufferedImageTypeIntARGB_Pre(TestImage image, Graphics2D graphics2d)
+    {
+        // create new buffered image and then perform basic BitBlt test.
+        return CommonBitmapOperations.doBitBltTestWithHorizontalGrayscaleGradientImage(image, graphics2d, BufferedImage.TYPE_INT_ARGB_PRE);
+    }
+
+    /**
+     * Test basic BitBlt operation for horizontal grayscale gradient 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 testBitBltHorizontalGrayscaleGradientBufferedImageType4ByteABGR(TestImage image, Graphics2D graphics2d)
+    {
+        // create new buffered image and then perform basic BitBlt test.
+        return CommonBitmapOperations.doBitBltTestWithHorizontalGrayscaleGradientImage(image, graphics2d, BufferedImage.TYPE_4BYTE_ABGR);
+    }
+
+    /**
+     * Test basic BitBlt operation for horizontal grayscale gradient buffered image with type TYPE_4BYTE_ABGR_PRE.
+     *
+     * @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 testBitBltHorizontalGrayscaleGradientBufferedImageType4ByteABGR_PRE(TestImage image, Graphics2D graphics2d)
+    {
+        // create new buffered image and then perform basic BitBlt test.
+        return CommonBitmapOperations.doBitBltTestWithHorizontalGrayscaleGradientImage(image, graphics2d, BufferedImage.TYPE_4BYTE_ABGR_PRE);
+    }
+
+    /**
+     * Test basic BitBlt operation for horizontal grayscale gradient buffered image with type TYPE_BYTE_GRAY.
+     *
+     * @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 testBitBltHorizontalGrayscaleGradientBufferedImageTypeByteGray(TestImage image, Graphics2D graphics2d)
+    {
+        // create new buffered image and then perform basic BitBlt test.
+        return CommonBitmapOperations.doBitBltTestWithHorizontalGrayscaleGradientImage(image, graphics2d, BufferedImage.TYPE_BYTE_GRAY);
+    }
+
+    /**
+     * Test basic BitBlt operation for horizontal grayscale gradient buffered image with type TYPE_USHORT_GRAY.
+     *
+     * @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 testBitBltHorizontalGrayscaleGradientBufferedImageTypeUshortGray(TestImage image, Graphics2D graphics2d)
+    {
+        // create new buffered image and then perform basic BitBlt test.
+        return CommonBitmapOperations.doBitBltTestWithHorizontalGrayscaleGradientImage(image, graphics2d, BufferedImage.TYPE_USHORT_GRAY);
+    }
+
+    /**
+     * Test basic BitBlt operation for horizontal grayscale gradient buffered image with type TYPE_USHORT_565_RGB.
+     *
+     * @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 testBitBltHorizontalGrayscaleGradientBufferedImageTypeUshort565RGB(TestImage image, Graphics2D graphics2d)
+    {
+        // create new buffered image and then perform basic BitBlt test.
+        return CommonBitmapOperations.doBitBltTestWithHorizontalGrayscaleGradientImage(image, graphics2d, BufferedImage.TYPE_USHORT_565_RGB);
+    }
+
+    /**
+     * Test basic BitBlt operation for horizontal grayscale gradient buffered image with type TYPE_USHORT_555_RGB.
+     *
+     * @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 testBitBltHorizontalGrayscaleGradientBufferedImageTypeUshort555RGB(TestImage image, Graphics2D graphics2d)
+    {
+        // create new buffered image and then perform basic BitBlt test.
+        return CommonBitmapOperations.doBitBltTestWithHorizontalGrayscaleGradientImage(image, graphics2d, BufferedImage.TYPE_USHORT_555_RGB);
+    }
+
+    /**
+     * Test basic BitBlt operation for horizontal grayscale gradient buffered image with type TYPE_3BYTE_BGR.
+     *
+     * @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 testBitBltHorizontalGrayscaleGradientBufferedImageType3ByteBGR(TestImage image, Graphics2D graphics2d)
+    {
+        // create new buffered image and then perform basic BitBlt test.
+        return CommonBitmapOperations.doBitBltTestWithHorizontalGrayscaleGradientImage(image, graphics2d, BufferedImage.TYPE_3BYTE_BGR);
+    }
+
+    /**
      * Test basic BitBlt operation for vertical grayscale gradient buffered image
      * with type TYPE_BYTE_BINARY.
      * 



More information about the distro-pkg-dev mailing list