/hg/gfx-test: Added nine new tests to the test suite src/org/gfx...
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Thu Dec 13 01:36:53 PST 2012
changeset 9c43ef8b6cd6 in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=9c43ef8b6cd6
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Thu Dec 13 10:39:57 2012 +0100
Added nine new tests to the test suite src/org/gfxtest/testsuites/BitBltUsingBgColor.java.
diffstat:
ChangeLog | 7 +-
src/org/gfxtest/testsuites/BitBltUsingBgColor.java | 120 +++++++++++++++++++++
2 files changed, 126 insertions(+), 1 deletions(-)
diffs (147 lines):
diff -r 76335aa60853 -r 9c43ef8b6cd6 ChangeLog
--- a/ChangeLog Wed Dec 12 11:07:14 2012 +0100
+++ b/ChangeLog Thu Dec 13 10:39:57 2012 +0100
@@ -1,7 +1,12 @@
+2012-12-13 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/gfxtest/testsuites/BitBltUsingBgColor.java:
+ Added nine new tests to this test suite.
+
2012-12-12 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/gfxtest/testsuites/Paths.java:
- Added new tests to this test case.
+ Added new tests to this test suite.
2012-12-11 Pavel Tisnovsky <ptisnovs at redhat.com>
diff -r 76335aa60853 -r 9c43ef8b6cd6 src/org/gfxtest/testsuites/BitBltUsingBgColor.java
--- a/src/org/gfxtest/testsuites/BitBltUsingBgColor.java Wed Dec 12 11:07:14 2012 +0100
+++ b/src/org/gfxtest/testsuites/BitBltUsingBgColor.java Thu Dec 13 10:39:57 2012 +0100
@@ -646,6 +646,126 @@
}
/**
+ * Test basic BitBlt operation for empty buffered image with type TYPE_INT_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 testBitBltEmptyBufferedImageTypeIntBGRbackgroundBlack(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageTypeIntBGR(image, graphics2d, Color.black);
+ }
+
+ /**
+ * Test basic BitBlt operation for empty buffered image with type TYPE_INT_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 testBitBltEmptyBufferedImageTypeIntBGRbackgroundBlue(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageTypeIntBGR(image, graphics2d, Color.blue);
+ }
+
+ /**
+ * Test basic BitBlt operation for empty buffered image with type TYPE_INT_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 testBitBltEmptyBufferedImageTypeIntBGRbackgroundGreen(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageTypeIntBGR(image, graphics2d, Color.green);
+ }
+
+ /**
+ * Test basic BitBlt operation for empty buffered image with type TYPE_INT_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 testBitBltEmptyBufferedImageTypeIntBGRbackgroundCyan(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageTypeIntBGR(image, graphics2d, Color.cyan);
+ }
+
+ /**
+ * Test basic BitBlt operation for empty buffered image with type TYPE_INT_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 testBitBltEmptyBufferedImageTypeIntBGRbackgroundRed(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageTypeIntBGR(image, graphics2d, Color.red);
+ }
+
+ /**
+ * Test basic BitBlt operation for empty buffered image with type TYPE_INT_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 testBitBltEmptyBufferedImageTypeIntBGRbackgroundMagenta(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageTypeIntBGR(image, graphics2d, Color.magenta);
+ }
+
+ /**
+ * Test basic BitBlt operation for empty buffered image with type TYPE_INT_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 testBitBltEmptyBufferedImageTypeIntBGRbackgroundYellow(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageTypeIntBGR(image, graphics2d, Color.yellow);
+ }
+
+ /**
+ * Test basic BitBlt operation for empty buffered image with type TYPE_INT_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 testBitBltEmptyBufferedImageTypeIntBGRbackgroundWhite(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageTypeIntBGR(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