changeset 787:7300b085de09 draft

Eight new tests added into BitBltUsingBgColor.
author Pavel Tisnovsky <ptisnovs@redhat.com>
date Fri, 08 Jan 2016 12:10:16 +0100
parents 6e2bcc48fba8
children 33467bb51622
files ChangeLog src/org/gfxtest/testsuites/BitBltUsingBgColor.java
diffstat 2 files changed, 125 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Jan 07 15:00:41 2016 +0100
+++ b/ChangeLog	Fri Jan 08 12:10:16 2016 +0100
@@ -1,3 +1,8 @@
+2016-01-08  Pavel Tisnovsky  <ptisnovs@redhat.com>
+
+	* src/org/gfxtest/testsuites/BitBltUsingBgColor.java:
+	Eight new tests added into BitBltUsingBgColor.
+
 2016-01-07  Pavel Tisnovsky  <ptisnovs@redhat.com>
 
 	* src/org/gfxtest/testsuites/BitBltUsingBgColor.java:
--- a/src/org/gfxtest/testsuites/BitBltUsingBgColor.java	Thu Jan 07 15:00:41 2016 +0100
+++ b/src/org/gfxtest/testsuites/BitBltUsingBgColor.java	Fri Jan 08 12:10:16 2016 +0100
@@ -14776,6 +14776,126 @@
     }
 
     /**
+     * Test basic BitBlt operation for diagonal grid buffered image with type {@link BufferedImage#TYPE_3BYTE_BGR}.
+     * Background color is set to Color.black.
+     *
+     * @param image
+     *            image to be used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testBitBltDiagonalGridBufferedImageType4ByteABGRbackgroundBlack(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltDiagonalGridBufferedImageType4ByteABGR(image, graphics2d, Color.black);
+    }
+
+    /**
+     * Test basic BitBlt operation for diagonal grid buffered image with type {@link BufferedImage#TYPE_3BYTE_BGR}.
+     * Background color is set to Color.blue.
+     *
+     * @param image
+     *            image to be used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testBitBltDiagonalGridBufferedImageType4ByteABGRbackgroundBlue(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltDiagonalGridBufferedImageType4ByteABGR(image, graphics2d, Color.blue);
+    }
+
+    /**
+     * Test basic BitBlt operation for diagonal grid buffered image with type {@link BufferedImage#TYPE_3BYTE_BGR}.
+     * Background color is set to Color.green.
+     *
+     * @param image
+     *            image to be used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testBitBltDiagonalGridBufferedImageType4ByteABGRbackgroundGreen(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltDiagonalGridBufferedImageType4ByteABGR(image, graphics2d, Color.green);
+    }
+
+    /**
+     * Test basic BitBlt operation for diagonal grid buffered image with type {@link BufferedImage#TYPE_3BYTE_BGR}.
+     * Background color is set to Color.cyan.
+     *
+     * @param image
+     *            image to be used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testBitBltDiagonalGridBufferedImageType4ByteABGRbackgroundCyan(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltDiagonalGridBufferedImageType4ByteABGR(image, graphics2d, Color.cyan);
+    }
+
+    /**
+     * Test basic BitBlt operation for diagonal grid buffered image with type {@link BufferedImage#TYPE_3BYTE_BGR}.
+     * Background color is set to Color.red.
+     *
+     * @param image
+     *            image to be used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testBitBltDiagonalGridBufferedImageType4ByteABGRbackgroundRed(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltDiagonalGridBufferedImageType4ByteABGR(image, graphics2d, Color.red);
+    }
+
+    /**
+     * Test basic BitBlt operation for diagonal grid buffered image with type {@link BufferedImage#TYPE_3BYTE_BGR}.
+     * Background color is set to Color.magenta.
+     *
+     * @param image
+     *            image to be used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testBitBltDiagonalGridBufferedImageType4ByteABGRbackgroundMagenta(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltDiagonalGridBufferedImageType4ByteABGR(image, graphics2d, Color.magenta);
+    }
+
+    /**
+     * Test basic BitBlt operation for diagonal grid buffered image with type {@link BufferedImage#TYPE_3BYTE_BGR}.
+     * Background color is set to Color.yellow.
+     *
+     * @param image
+     *            image to be used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testBitBltDiagonalGridBufferedImageType4ByteABGRbackgroundYellow(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltDiagonalGridBufferedImageType4ByteABGR(image, graphics2d, Color.yellow);
+    }
+
+    /**
+     * Test basic BitBlt operation for diagonal grid buffered image with type {@link BufferedImage#TYPE_3BYTE_BGR}.
+     * Background color is set to Color.white.
+     *
+     * @param image
+     *            image to be used as a destination for BitBlt-type operations
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testBitBltDiagonalGridBufferedImageType4ByteABGRbackgroundWhite(TestImage image, Graphics2D graphics2d)
+    {
+        return doBitBltDiagonalGridBufferedImageType4ByteABGR(image, graphics2d, Color.white);
+    }
+
+    /**
      * Entry point to the test suite.
      *
      * @param args not used in this case