/hg/gfx-test: 2012-01-23 Pavel Tisnovsky <ptisnovs at redhat.com>

ptisnovs at icedtea.classpath.org ptisnovs at icedtea.classpath.org
Mon Jan 23 01:15:43 PST 2012


changeset 95c3b4a9eaaf in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=95c3b4a9eaaf
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Mon Jan 23 10:18:01 2012 +0100

	2012-01-23 Pavel Tisnovsky <ptisnovs at redhat.com>

	 * src/org/gfxtest/testsuites/BitBltBasicTests.java:
	Added new test.
	        * src/org/gfxtest/testsuites/BitBltScaleImage.java: Added
	new tests.


diffstat:

 ChangeLog                                        |    7 +
 src/org/gfxtest/testsuites/BitBltBasicTests.java |   14 ++
 src/org/gfxtest/testsuites/BitBltScaleImage.java |  136 +++++++++++++++++++++++
 3 files changed, 157 insertions(+), 0 deletions(-)

diffs (184 lines):

diff -r d20f41c8e71d -r 95c3b4a9eaaf ChangeLog
--- a/ChangeLog	Fri Jan 20 10:19:51 2012 +0100
+++ b/ChangeLog	Mon Jan 23 10:18:01 2012 +0100
@@ -1,3 +1,10 @@
+2012-01-23  Pavel Tisnovsky  <ptisnovs at redhat.com>
+
+	* src/org/gfxtest/testsuites/BitBltBasicTests.java:
+	Added new test.
+	* src/org/gfxtest/testsuites/BitBltScaleImage.java:
+	Added new tests.
+
 2012-01-20  Pavel Tisnovsky  <ptisnovs at redhat.com>
 
 	* src/org/gfxtest/framework/CommonBitmapOperations.java:
diff -r d20f41c8e71d -r 95c3b4a9eaaf src/org/gfxtest/testsuites/BitBltBasicTests.java
--- a/src/org/gfxtest/testsuites/BitBltBasicTests.java	Fri Jan 20 10:19:51 2012 +0100
+++ b/src/org/gfxtest/testsuites/BitBltBasicTests.java	Mon Jan 23 10:18:01 2012 +0100
@@ -411,6 +411,20 @@
     }
 
     /**
+     * Test basic BitBlt operation for diagonal checker buffered image with type TYPE_BYTE_BINARY.
+     *
+     * @param image
+     *            image to which line is to be drawn
+     * @param graphics2d
+     *            graphics canvas
+     * @return
+     */
+    public TestResult testBitBltDiagonalCheckerBufferedImageTypeByteBinary(TestImage image, Graphics2D graphics2d)
+    {
+        return CommonBitmapOperations.doBitBltTestWithDiagonalCheckerImage(image, graphics2d, BufferedImage.TYPE_BYTE_BINARY);
+    }
+
+    /**
      * Test basic BitBlt operation for grid buffered image with type TYPE_BYTE_BINARY.
      *
      * @param image
diff -r d20f41c8e71d -r 95c3b4a9eaaf src/org/gfxtest/testsuites/BitBltScaleImage.java
--- a/src/org/gfxtest/testsuites/BitBltScaleImage.java	Fri Jan 20 10:19:51 2012 +0100
+++ b/src/org/gfxtest/testsuites/BitBltScaleImage.java	Mon Jan 23 10:18:01 2012 +0100
@@ -212,6 +212,142 @@
     }
 
     /**
+     * Test basic BitBlt operation for diagonal checker buffered image with type TYPE_BYTE_BINARY.
+     * The image is scaled to a double size in both dimensions.
+     *
+     * @param image
+     *            image to which line is to be drawn
+     * @param graphics2d
+     *            graphics canvas
+     * @return
+     */
+    public TestResult testBitBltDiagonalCheckerBufferedImageTypeByteBinaryScaleTwoTimes(TestImage image, Graphics2D graphics2d)
+    {
+        return CommonBitmapOperations.doBitBltTestWithDiagonalCheckerImage(image, graphics2d, BufferedImage.TYPE_BYTE_BINARY,
+                        CommonBitmapOperations.DEFAULT_TEST_IMAGE_WIDTH * 2,
+                        CommonBitmapOperations.DEFAULT_TEST_IMAGE_HEIGHT * 2);
+    }
+
+    /**
+     * Test basic BitBlt operation for diagonal checker buffered image with type TYPE_BYTE_BINARY.
+     * The image is scaled to one half size in both dimensions.
+     *
+     * @param image
+     *            image to which line is to be drawn
+     * @param graphics2d
+     *            graphics canvas
+     * @return
+     */
+    public TestResult testBitBltDiagonalCheckerBufferedImageTypeByteBinaryScaleOneHalf(TestImage image, Graphics2D graphics2d)
+    {
+        return CommonBitmapOperations.doBitBltTestWithDiagonalCheckerImage(image, graphics2d, BufferedImage.TYPE_BYTE_BINARY,
+                        CommonBitmapOperations.DEFAULT_TEST_IMAGE_WIDTH / 2,
+                        CommonBitmapOperations.DEFAULT_TEST_IMAGE_HEIGHT / 2);
+    }
+
+    /**
+     * Test basic BitBlt operation for diagonal checker buffered image with type TYPE_BYTE_BINARY.
+     * The image is scaled to one third size in both dimensions.
+     *
+     * @param image
+     *            image to which line is to be drawn
+     * @param graphics2d
+     *            graphics canvas
+     * @return
+     */
+    public TestResult testBitBltDiagonalCheckerBufferedImageTypeByteBinaryScaleOneThird(TestImage image, Graphics2D graphics2d)
+    {
+        return CommonBitmapOperations.doBitBltTestWithDiagonalCheckerImage(image, graphics2d, BufferedImage.TYPE_BYTE_BINARY,
+                        CommonBitmapOperations.DEFAULT_TEST_IMAGE_WIDTH / 3,
+                        CommonBitmapOperations.DEFAULT_TEST_IMAGE_HEIGHT / 3);
+    }
+
+    /**
+     * Test basic BitBlt operation for diagonal checker buffered image with type TYPE_BYTE_BINARY.
+     * The image is scaled to two thirds size in both dimensions.
+     *
+     * @param image
+     *            image to which line is to be drawn
+     * @param graphics2d
+     *            graphics canvas
+     * @return
+     */
+    public TestResult testBitBltDiagonalCheckerBufferedImageTypeByteBinaryScaleTwoThirds(TestImage image, Graphics2D graphics2d)
+    {
+        return CommonBitmapOperations.doBitBltTestWithDiagonalCheckerImage(image, graphics2d, BufferedImage.TYPE_BYTE_BINARY,
+                        CommonBitmapOperations.DEFAULT_TEST_IMAGE_WIDTH * 2 / 3,
+                        CommonBitmapOperations.DEFAULT_TEST_IMAGE_HEIGHT * 2 / 3);
+    }
+
+    /**
+     * Test basic BitBlt operation for diagonal checker buffered image with type TYPE_BYTE_BINARY.
+     * The image is scaled to one half size in horizontal dimension.
+     *
+     * @param image
+     *            image to which line is to be drawn
+     * @param graphics2d
+     *            graphics canvas
+     * @return
+     */
+    public TestResult testBitBltDiagonalCheckerBufferedImageTypeByteBinaryHscaleOneHalf(TestImage image, Graphics2D graphics2d)
+    {
+        return CommonBitmapOperations.doBitBltTestWithDiagonalCheckerImage(image, graphics2d, BufferedImage.TYPE_BYTE_BINARY,
+                        CommonBitmapOperations.DEFAULT_TEST_IMAGE_WIDTH / 2,
+                        CommonBitmapOperations.DEFAULT_TEST_IMAGE_HEIGHT);
+    }
+
+    /**
+     * Test basic BitBlt operation for diagonal checker buffered image with type TYPE_BYTE_BINARY.
+     * The image is scaled to two times size in horizontal dimension.
+     *
+     * @param image
+     *            image to which line is to be drawn
+     * @param graphics2d
+     *            graphics canvas
+     * @return
+     */
+    public TestResult testBitBltDiagonalCheckerBufferedImageTypeByteBinaryHscaleTwoTimes(TestImage image, Graphics2D graphics2d)
+    {
+        return CommonBitmapOperations.doBitBltTestWithDiagonalCheckerImage(image, graphics2d, BufferedImage.TYPE_BYTE_BINARY,
+                        CommonBitmapOperations.DEFAULT_TEST_IMAGE_WIDTH * 2,
+                        CommonBitmapOperations.DEFAULT_TEST_IMAGE_HEIGHT);
+    }
+
+    /**
+     * Test basic BitBlt operation for diagonal checker buffered image with type TYPE_BYTE_BINARY.
+     * The image is scaled to one half size in vertical dimension.
+     *
+     * @param image
+     *            image to which line is to be drawn
+     * @param graphics2d
+     *            graphics canvas
+     * @return
+     */
+    public TestResult testBitBltDiagonalCheckerBufferedImageTypeByteBinaryVscaleOneHalf(TestImage image, Graphics2D graphics2d)
+    {
+        return CommonBitmapOperations.doBitBltTestWithDiagonalCheckerImage(image, graphics2d, BufferedImage.TYPE_BYTE_BINARY,
+                        CommonBitmapOperations.DEFAULT_TEST_IMAGE_WIDTH,
+                        CommonBitmapOperations.DEFAULT_TEST_IMAGE_HEIGHT / 2);
+    }
+
+    /**
+     * Test basic BitBlt operation for diagonal checker buffered image with type TYPE_BYTE_BINARY.
+     * The image is scaled to two times size in vertical dimension.
+     *
+     * @param image
+     *            image to which line is to be drawn
+     * @param graphics2d
+     *            graphics canvas
+     * @return
+     */
+    public TestResult testBitBltDiagonalCheckerBufferedImageTypeByteBinaryVscaleTwoTimes(TestImage image, Graphics2D graphics2d)
+    {
+        return CommonBitmapOperations.doBitBltTestWithDiagonalCheckerImage(image, graphics2d,
+                        BufferedImage.TYPE_BYTE_BINARY, CommonBitmapOperations.DEFAULT_TEST_IMAGE_WIDTH,
+                        CommonBitmapOperations.DEFAULT_TEST_IMAGE_HEIGHT * 2);
+    }
+
+    /**
      * Entry point to the test suite.
      *
      * @param args not used in this case



More information about the distro-pkg-dev mailing list