/hg/gfx-test: Added ten new tests to the test suite src/org/gfxt...
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Fri Dec 21 01:32:45 PST 2012
changeset c71e4eb14bec in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=c71e4eb14bec
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Fri Dec 21 10:35:45 2012 +0100
Added ten new tests to the test suite src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java.
diffstat:
ChangeLog | 5 +
src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java | 150 ++++++++++++++++
2 files changed, 155 insertions(+), 0 deletions(-)
diffs (172 lines):
diff -r 5f978c925a36 -r c71e4eb14bec ChangeLog
--- a/ChangeLog Thu Dec 20 13:12:54 2012 +0100
+++ b/ChangeLog Fri Dec 21 10:35:45 2012 +0100
@@ -1,3 +1,8 @@
+2012-12-21 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java:
+ Added ten new tests to this test suite.
+
2012-12-20 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/gfxtest/testsuites/BitBltBasicTests.java:
diff -r 5f978c925a36 -r c71e4eb14bec src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java
--- a/src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java Thu Dec 20 13:12:54 2012 +0100
+++ b/src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java Fri Dec 21 10:35:45 2012 +0100
@@ -267,6 +267,156 @@
}
/**
+ * 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 testBitBltEmptyBufferedImageType3ByteBGRbackgroundGreenAlpha000(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageType3ByteRGB(image, graphics2d, Color.green, 0.0f);
+ }
+
+ /**
+ * 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 testBitBltEmptyBufferedImageType3ByteBGRbackgroundGreenAlpha025(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageType3ByteRGB(image, graphics2d, Color.green, 0.25f);
+ }
+
+ /**
+ * 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 testBitBltEmptyBufferedImageType3ByteBGRbackgroundGreenAlpha050(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageType3ByteRGB(image, graphics2d, Color.green, 0.5f);
+ }
+
+ /**
+ * 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 testBitBltEmptyBufferedImageType3ByteBGRbackgroundGreenAlpha075(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageType3ByteRGB(image, graphics2d, Color.green, 0.75f);
+ }
+
+ /**
+ * 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 testBitBltEmptyBufferedImageType3ByteBGRbackgroundGreenAlpha100(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageType3ByteRGB(image, graphics2d, Color.green, 1.00f);
+ }
+
+ /**
+ * 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 testBitBltEmptyBufferedImageType3ByteBGRbackgroundBlueAlpha000(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageType3ByteRGB(image, graphics2d, Color.blue, 0.0f);
+ }
+
+ /**
+ * 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 testBitBltEmptyBufferedImageType3ByteBGRbackgroundBlueAlpha025(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageType3ByteRGB(image, graphics2d, Color.blue, 0.25f);
+ }
+
+ /**
+ * 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 testBitBltEmptyBufferedImageType3ByteBGRbackgroundBlueAlpha050(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageType3ByteRGB(image, graphics2d, Color.blue, 0.5f);
+ }
+
+ /**
+ * 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 testBitBltEmptyBufferedImageType3ByteBGRbackgroundBlueAlpha075(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageType3ByteRGB(image, graphics2d, Color.blue, 0.75f);
+ }
+
+ /**
+ * 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 testBitBltEmptyBufferedImageType3ByteBGRbackgroundBlueAlpha100(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageType3ByteRGB(image, graphics2d, Color.blue, 1.00f);
+ }
+
+ /**
* Entry point to the test suite.
*
* @param args not used in this case
More information about the distro-pkg-dev
mailing list