/hg/gfx-test: Eight new tests added to the test suite src/org/gf...
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Tue Nov 27 00:37:01 PST 2012
changeset 1c62bee39f38 in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=1c62bee39f38
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Tue Nov 27 09:39:58 2012 +0100
Eight new tests added to the test suite src/org/gfxtest/testsuites/BitBltUsingBgColor.java.
diffstat:
ChangeLog | 5 +
src/org/gfxtest/testsuites/BitBltUsingBgColor.java | 154 +++++++++++++++++++++
2 files changed, 159 insertions(+), 0 deletions(-)
diffs (183 lines):
diff -r fe59bdda77c8 -r 1c62bee39f38 ChangeLog
--- a/ChangeLog Mon Nov 26 11:11:07 2012 +0100
+++ b/ChangeLog Tue Nov 27 09:39:58 2012 +0100
@@ -1,3 +1,8 @@
+2012-11-27 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/gfxtest/testsuites/BitBltUsingBgColor.java:
+ Eight new tests added.
+
2012-11-26 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/gfxtest/testsuites/BitBltUsingBgColor.java:
diff -r fe59bdda77c8 -r 1c62bee39f38 src/org/gfxtest/testsuites/BitBltUsingBgColor.java
--- a/src/org/gfxtest/testsuites/BitBltUsingBgColor.java Mon Nov 26 11:11:07 2012 +0100
+++ b/src/org/gfxtest/testsuites/BitBltUsingBgColor.java Tue Nov 27 09:39:58 2012 +0100
@@ -99,6 +99,40 @@
}
/**
+ * Test basic BitBlt operation for empty buffered image with type TYPE_4BYTE_ABGR
+ *
+ * @param image
+ * image to used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @param backgroundColor
+ * background color
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ private TestResult doBitBltEmptyBufferedImageType4ByteABGR(TestImage image, Graphics2D graphics2d,
+ Color backgroundColor)
+ {
+ return CommonBitmapOperations.doBitBltTestWithEmptyImage(image, graphics2d, BufferedImage.TYPE_4BYTE_ABGR, backgroundColor);
+ }
+
+ /**
+ * Test basic BitBlt operation for empty buffered image with type TYPE_4BYTE_ABGR
+ *
+ * @param image
+ * image to used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @param backgroundColor
+ * background color
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ private TestResult doBitBltEmptyBufferedImageType4ByteABGRPre(TestImage image, Graphics2D graphics2d,
+ Color backgroundColor)
+ {
+ return CommonBitmapOperations.doBitBltTestWithEmptyImage(image, graphics2d, BufferedImage.TYPE_4BYTE_ABGR_PRE, backgroundColor);
+ }
+
+ /**
* Test basic BitBlt operation for empty buffered image with type TYPE_3BYTE_BGR.
* Background color is set to Color.black.
*
@@ -219,6 +253,126 @@
}
/**
+ * Test basic BitBlt operation for empty buffered image with type TYPE_3BYTE_BGR.
+ * 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 testBitBltEmptyBufferedImageType4ByteABGRbackgroundBlack(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageType4ByteABGR(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 testBitBltEmptyBufferedImageType4ByteABGRbackgroundBlue(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageType4ByteABGR(image, graphics2d, Color.blue);
+ }
+
+ /**
+ * Test basic BitBlt operation for empty buffered image with type TYPE_3BYTE_BGR.
+ * 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 testBitBltEmptyBufferedImageType4ByteABGRbackgroundGreen(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageType4ByteABGR(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 testBitBltEmptyBufferedImageType4ByteABGRbackgroundCyan(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageType4ByteABGR(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 testBitBltEmptyBufferedImageType4ByteABGRbackgroundRed(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageType4ByteABGR(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 testBitBltEmptyBufferedImageType4ByteABGRbackgroundMagenta(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageType4ByteABGR(image, graphics2d, Color.magenta);
+ }
+
+ /**
+ * Test basic BitBlt operation for empty buffered image with type TYPE_3BYTE_BGR.
+ * 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 testBitBltEmptyBufferedImageType4ByteABGRbackgroundYellow(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageType4ByteABGR(image, graphics2d, Color.yellow);
+ }
+
+ /**
+ * Test basic BitBlt operation for empty buffered image with type TYPE_3BYTE_BGR.
+ * 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 testBitBltEmptyBufferedImageType4ByteABGRbackgroundWhite(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageType4ByteABGR(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