/hg/gfx-test: Added new tests to the test suite src/org/gfxtest/...
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Mon Dec 10 01:24:24 PST 2012
changeset 72295736d85d in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=72295736d85d
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Mon Dec 10 10:27:25 2012 +0100
Added new tests to the test suite src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java.
diffstat:
ChangeLog | 7 +-
src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java | 75 +++++++++++++++++
2 files changed, 81 insertions(+), 1 deletions(-)
diffs (106 lines):
diff -r e0d051839cb1 -r 72295736d85d ChangeLog
--- a/ChangeLog Fri Dec 07 12:10:17 2012 +0100
+++ b/ChangeLog Mon Dec 10 10:27:25 2012 +0100
@@ -1,3 +1,8 @@
+2012-12-10 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java:
+ Added new tests to this test suite.
+
2012-12-07 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/gfxtest/testsuites/BitBltAffineTransformOp.java:
@@ -8,7 +13,7 @@
* src/org/gfxtest/testsuites/BitBltRescaleOp.java:
Added stubs for six new tests.
* Makefile:
- Added new class to compile and new test to run.
+ Added new classes to compile and new tests to run.
2012-12-06 Pavel Tisnovsky <ptisnovs at redhat.com>
diff -r e0d051839cb1 -r 72295736d85d src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java
--- a/src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java Fri Dec 07 12:10:17 2012 +0100
+++ b/src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java Mon Dec 10 10:27:25 2012 +0100
@@ -117,6 +117,81 @@
}
/**
+ * 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 testBitBltEmptyBufferedImageType3ByteBGRbackgroundBlackAlpha000(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageType3ByteRGB(image, graphics2d, Color.black, 0.0f);
+ }
+
+ /**
+ * 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 testBitBltEmptyBufferedImageType3ByteBGRbackgroundBlackAlpha025(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageType3ByteRGB(image, graphics2d, Color.black, 0.25f);
+ }
+
+ /**
+ * 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 testBitBltEmptyBufferedImageType3ByteBGRbackgroundBlackAlpha050(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageType3ByteRGB(image, graphics2d, Color.black, 0.5f);
+ }
+
+ /**
+ * 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 testBitBltEmptyBufferedImageType3ByteBGRbackgroundBlackAlpha075(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageType3ByteRGB(image, graphics2d, Color.black, 0.75f);
+ }
+
+ /**
+ * 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 testBitBltEmptyBufferedImageType3ByteBGRbackgroundBlackAlpha100(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageType3ByteRGB(image, graphics2d, Color.black, 1.00f);
+ }
+
+ /**
* Entry point to the test suite.
*
* @param args not used in this case
More information about the distro-pkg-dev
mailing list