/hg/gfx-test: Ten new tests added into BitBltUsingBgColorAlpha t...
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Fri Jul 26 02:28:13 PDT 2013
changeset 458d896ac158 in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=458d896ac158
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Fri Jul 26 11:31:51 2013 +0200
Ten new tests added into BitBltUsingBgColorAlpha test suite.
diffstat:
ChangeLog | 5 +
src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java | 150 ++++++++++++++++
2 files changed, 155 insertions(+), 0 deletions(-)
diffs (172 lines):
diff -r 16631714a0da -r 458d896ac158 ChangeLog
--- a/ChangeLog Thu Jul 25 11:44:45 2013 +0200
+++ b/ChangeLog Fri Jul 26 11:31:51 2013 +0200
@@ -1,3 +1,8 @@
+2013-07-26 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java:
+ Ten new tests added into BitBltUsingBgColorAlpha test suite.
+
2013-07-25 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/gfxtest/testsuites/BitBltUsingBgColor.java:
diff -r 16631714a0da -r 458d896ac158 src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java
--- a/src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java Thu Jul 25 11:44:45 2013 +0200
+++ b/src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java Fri Jul 26 11:31:51 2013 +0200
@@ -1183,6 +1183,156 @@
}
/**
+ * Test basic BitBlt operation for empty buffered image with type TYPE_4BYTE_ABGR.
+ * 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 testBitBltEmptyBufferedImageType4ByteABGRbackgroundBlueAlpha000(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageType4ByteABGR(image, graphics2d, Color.blue, 0.0f);
+ }
+
+ /**
+ * Test basic BitBlt operation for empty buffered image with type TYPE_4BYTE_ABGR.
+ * 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 testBitBltEmptyBufferedImageType4ByteABGRbackgroundBlueAlpha025(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageType4ByteABGR(image, graphics2d, Color.blue, 0.25f);
+ }
+
+ /**
+ * Test basic BitBlt operation for empty buffered image with type TYPE_4BYTE_ABGR.
+ * 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 testBitBltEmptyBufferedImageType4ByteABGRbackgroundBlueAlpha050(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageType4ByteABGR(image, graphics2d, Color.blue, 0.5f);
+ }
+
+ /**
+ * Test basic BitBlt operation for empty buffered image with type TYPE_4BYTE_ABGR.
+ * 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 testBitBltEmptyBufferedImageType4ByteABGRbackgroundBlueAlpha075(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageType4ByteABGR(image, graphics2d, Color.blue, 0.75f);
+ }
+
+ /**
+ * Test basic BitBlt operation for empty buffered image with type TYPE_4BYTE_ABGR.
+ * 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 testBitBltEmptyBufferedImageType4ByteABGRbackgroundBlueAlpha100(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageType4ByteABGR(image, graphics2d, Color.blue, 1.00f);
+ }
+
+ /**
+ * Test basic BitBlt operation for empty buffered image with type TYPE_4BYTE_ABGR.
+ * 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 testBitBltEmptyBufferedImageType4ByteABGRbackgroundYellowAlpha000(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageType4ByteABGR(image, graphics2d, Color.yellow, 0.0f);
+ }
+
+ /**
+ * Test basic BitBlt operation for empty buffered image with type TYPE_4BYTE_ABGR.
+ * 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 testBitBltEmptyBufferedImageType4ByteABGRbackgroundYellowAlpha025(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageType4ByteABGR(image, graphics2d, Color.yellow, 0.25f);
+ }
+
+ /**
+ * Test basic BitBlt operation for empty buffered image with type TYPE_4BYTE_ABGR.
+ * 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 testBitBltEmptyBufferedImageType4ByteABGRbackgroundYellowAlpha050(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageType4ByteABGR(image, graphics2d, Color.yellow, 0.5f);
+ }
+
+ /**
+ * Test basic BitBlt operation for empty buffered image with type TYPE_4BYTE_ABGR.
+ * 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 testBitBltEmptyBufferedImageType4ByteABGRbackgroundYellowAlpha075(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageType4ByteABGR(image, graphics2d, Color.yellow, 0.75f);
+ }
+
+ /**
+ * Test basic BitBlt operation for empty buffered image with type TYPE_4BYTE_ABGR.
+ * 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 testBitBltEmptyBufferedImageType4ByteABGRbackgroundYellowAlpha100(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageType4ByteABGR(image, graphics2d, Color.yellow, 1.00f);
+ }
+
+ /**
* Test basic BitBlt operation for empty buffered image with type TYPE_4BYTE_ABGR_PRE.
* Background color is set to Color.black.
*
More information about the distro-pkg-dev
mailing list