/hg/gfx-test: Added new tests into src/org/gfxtest/testsuites/Bi...

ptisnovs at icedtea.classpath.org ptisnovs at icedtea.classpath.org
Mon Nov 26 02:08:07 PST 2012


changeset fe59bdda77c8 in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=fe59bdda77c8
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Mon Nov 26 11:11:07 2012 +0100

	Added new tests into src/org/gfxtest/testsuites/BitBltUsingBgColor.java - new background colors etc.


diffstat:

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

diffs (120 lines):

diff -r 2887645db444 -r fe59bdda77c8 ChangeLog
--- a/ChangeLog	Thu Nov 22 10:27:36 2012 +0100
+++ b/ChangeLog	Mon Nov 26 11:11:07 2012 +0100
@@ -1,3 +1,8 @@
+2012-11-26  Pavel Tisnovsky  <ptisnovs at redhat.com>
+
+	* src/org/gfxtest/testsuites/BitBltUsingBgColor.java:
+	Added new tests - new background colors etc.
+
 2012-11-22  Pavel Tisnovsky  <ptisnovs at redhat.com>
 
 	* src/org/gfxtest/framework/CommonPathsGenerator.java:
diff -r 2887645db444 -r fe59bdda77c8 src/org/gfxtest/testsuites/BitBltUsingBgColor.java
--- a/src/org/gfxtest/testsuites/BitBltUsingBgColor.java	Thu Nov 22 10:27:36 2012 +0100
+++ b/src/org/gfxtest/testsuites/BitBltUsingBgColor.java	Mon Nov 26 11:11:07 2012 +0100
@@ -92,7 +92,7 @@
      *            background color
      * @return test result status - PASSED, FAILED or ERROR
      */
-    private TestResult doBitBltEmptyBufferedImageType3byteRGB(TestImage image, Graphics2D graphics2d,
+    private TestResult doBitBltEmptyBufferedImageType3ByteRGB(TestImage image, Graphics2D graphics2d,
                     Color backgroundColor)
     {
         return CommonBitmapOperations.doBitBltTestWithEmptyImage(image, graphics2d, BufferedImage.TYPE_3BYTE_BGR, backgroundColor);
@@ -110,7 +110,22 @@
      */
     public TestResult testBitBltEmptyBufferedImageType3ByteBGRbackgroundBlack(TestImage image, Graphics2D graphics2d)
     {
-        return doBitBltEmptyBufferedImageType3byteRGB(image, graphics2d, Color.black);
+        return doBitBltEmptyBufferedImageType3ByteRGB(image, graphics2d, Color.black);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type TYPE_3BYTE_BGR.
+     * 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 testBitBltEmptyBufferedImageType3ByteBGRbackgroundBlue(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageType3ByteRGB(image, graphics2d, Color.blue);
     }
 
     /**
@@ -125,7 +140,52 @@
      */
     public TestResult testBitBltEmptyBufferedImageType3ByteBGRbackgroundGreen(TestImage image, Graphics2D graphics2d)
     {
-        return doBitBltEmptyBufferedImageType3byteRGB(image, graphics2d, Color.green);
+        return doBitBltEmptyBufferedImageType3ByteRGB(image, graphics2d, Color.green);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type TYPE_3BYTE_BGR.
+     * 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 testBitBltEmptyBufferedImageType3ByteBGRbackgroundCyan(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageType3ByteRGB(image, graphics2d, Color.cyan);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type TYPE_3BYTE_BGR.
+     * 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 testBitBltEmptyBufferedImageType3ByteBGRbackgroundRed(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageType3ByteRGB(image, graphics2d, Color.red);
+    }
+
+    /**
+     * Test basic BitBlt operation for empty buffered image with type TYPE_3BYTE_BGR.
+     * 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 testBitBltEmptyBufferedImageType3ByteBGRbackgroundMagenta(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltEmptyBufferedImageType3ByteRGB(image, graphics2d, Color.magenta);
     }
 
     /**
@@ -140,7 +200,7 @@
      */
     public TestResult testBitBltEmptyBufferedImageType3ByteBGRbackgroundYellow(TestImage image, Graphics2D graphics2d)
     {
-        return doBitBltEmptyBufferedImageType3byteRGB(image, graphics2d, Color.yellow);
+        return doBitBltEmptyBufferedImageType3ByteRGB(image, graphics2d, Color.yellow);
     }
 
     /**
@@ -155,7 +215,7 @@
      */
     public TestResult testBitBltEmptyBufferedImageType3ByteBGRbackgroundWhite(TestImage image, Graphics2D graphics2d)
     {
-        return doBitBltEmptyBufferedImageType3byteRGB(image, graphics2d, Color.white);
+        return doBitBltEmptyBufferedImageType3ByteRGB(image, graphics2d, Color.white);
     }
 
     /**



More information about the distro-pkg-dev mailing list