/hg/gfx-test: Added eight new tests to the test suite BitBltUsin...

ptisnovs at icedtea.classpath.org ptisnovs at icedtea.classpath.org
Mon Jan 14 02:10:45 PST 2013


changeset 2a073104d1e2 in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=2a073104d1e2
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Mon Jan 14 11:13:54 2013 +0100

	Added eight new tests to the test suite BitBltUsingBgColor.


diffstat:

 ChangeLog                                          |    5 +
 src/org/gfxtest/testsuites/BitBltUsingBgColor.java |  120 +++++++++++++++++++++
 2 files changed, 125 insertions(+), 0 deletions(-)

diffs (142 lines):

diff -r bad6e5f050f5 -r 2a073104d1e2 ChangeLog
--- a/ChangeLog	Fri Jan 11 12:19:51 2013 +0100
+++ b/ChangeLog	Mon Jan 14 11:13:54 2013 +0100
@@ -1,3 +1,8 @@
+2013-01-14  Pavel Tisnovsky  <ptisnovs at redhat.com>
+
+	* src/org/gfxtest/testsuites/BitBltUsingBgColor.java:
+	Added eight new tests to this test suite.
+
 2013-01-11  Pavel Tisnovsky  <ptisnovs at redhat.com>
 
 	* src/org/gfxtest/framework/CommonBitmapOperations.java:
diff -r bad6e5f050f5 -r 2a073104d1e2 src/org/gfxtest/testsuites/BitBltUsingBgColor.java
--- a/src/org/gfxtest/testsuites/BitBltUsingBgColor.java	Fri Jan 11 12:19:51 2013 +0100
+++ b/src/org/gfxtest/testsuites/BitBltUsingBgColor.java	Mon Jan 14 11:13:54 2013 +0100
@@ -886,6 +886,126 @@
     }
 
     /**
+     * Test basic BitBlt operation for empty buffered image with type TYPE_INT_ARGB.
+     * Background color is set to Color.black.
+     *
+     * @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 testBitBltEmptyBufferedImageTypeIntARGBbackgroundBlack(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageTypeIntARGB(image, graphics2d, Color.black);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type TYPE_INT_ARGB.
+     * Background color is set to Color.blue.
+     *
+     * @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 testBitBltEmptyBufferedImageTypeIntARGBbackgroundBlue(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageTypeIntARGB(image, graphics2d, Color.blue);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type TYPE_INT_ARGB.
+     * Background color is set to Color.green.
+     *
+     * @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 testBitBltEmptyBufferedImageTypeIntARGBbackgroundGreen(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageTypeIntARGB(image, graphics2d, Color.green);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type TYPE_INT_ARGB.
+     * Background color is set to Color.cyan.
+     *
+     * @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 testBitBltEmptyBufferedImageTypeIntARGBbackgroundCyan(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageTypeIntARGB(image, graphics2d, Color.cyan);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type TYPE_INT_ARGB.
+     * Background color is set to Color.red.
+     *
+     * @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 testBitBltEmptyBufferedImageTypeIntARGBbackgroundRed(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageTypeIntARGB(image, graphics2d, Color.red);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type TYPE_INT_ARGB.
+     * Background color is set to Color.magenta.
+     *
+     * @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 testBitBltEmptyBufferedImageTypeIntARGBbackgroundMagenta(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageTypeIntARGB(image, graphics2d, Color.magenta);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type TYPE_INT_ARGB.
+     * Background color is set to Color.yellow.
+     *
+     * @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 testBitBltEmptyBufferedImageTypeIntARGBbackgroundYellow(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageTypeIntARGB(image, graphics2d, Color.yellow);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type TYPE_INT_ARGB.
+     * Background color is set to Color.white.
+     *
+     * @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 testBitBltEmptyBufferedImageTypeIntARGBbackgroundWhite(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageTypeIntARGB(image, graphics2d, Color.white);
+    }
+
+    /**
      * Entry point to the test suite.
      *
      * @param args not used in this case



More information about the distro-pkg-dev mailing list