/hg/gfx-test: Ten new tests added into BitBltUsingBgColor test s...
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Thu Sep 5 01:39:01 PDT 2013
changeset 2f476a912028 in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=2f476a912028
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Thu Sep 05 10:42:39 2013 +0200
Ten new tests added into BitBltUsingBgColor test suite.
diffstat:
ChangeLog | 5 +
src/org/gfxtest/testsuites/BitBltUsingBgColor.java | 150 +++++++++++++++++++++
2 files changed, 155 insertions(+), 0 deletions(-)
diffs (172 lines):
diff -r 3939316ef6dd -r 2f476a912028 ChangeLog
--- a/ChangeLog Wed Sep 04 11:53:33 2013 +0200
+++ b/ChangeLog Thu Sep 05 10:42:39 2013 +0200
@@ -1,3 +1,8 @@
+2013-09-05 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/gfxtest/testsuites/BitBltUsingBgColor.java:
+ Ten new tests added into BitBltUsingBgColor test suite.
+
2013-09-04 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/gfxtest/testsuites/BitBltBasicTests.java:
diff -r 3939316ef6dd -r 2f476a912028 src/org/gfxtest/testsuites/BitBltUsingBgColor.java
--- a/src/org/gfxtest/testsuites/BitBltUsingBgColor.java Wed Sep 04 11:53:33 2013 +0200
+++ b/src/org/gfxtest/testsuites/BitBltUsingBgColor.java Thu Sep 05 10:42:39 2013 +0200
@@ -3452,6 +3452,156 @@
}
/**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_INT_ARGB.
+ * Background color is set to Color.white.
+ *
+ * @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 testBitBltCheckerBufferedImageTypeIntARGBbackgroundWhite(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltCheckerBufferedImageTypeIntARGB(image, graphics2d, Color.white);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_INT_ARGB_PRE.
+ * Background color is set to Color.black.
+ *
+ * @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 testBitBltCheckerBufferedImageTypeIntARGB_Pre_backgroundBlack(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltCheckerBufferedImageTypeIntARGBPre(image, graphics2d, Color.black);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_INT_ARGB_PRE.
+ * 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 testBitBltCheckerBufferedImageTypeIntARGB_Pre_backgroundBlue(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltCheckerBufferedImageTypeIntARGBPre(image, graphics2d, Color.blue);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_INT_ARGB_PRE.
+ * Background color is set to Color.green.
+ *
+ * @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 testBitBltCheckerBufferedImageTypeIntARGB_Pre_backgroundGreen(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltCheckerBufferedImageTypeIntARGBPre(image, graphics2d, Color.green);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_INT_ARGB_PRE.
+ * Background color is set to Color.cyan.
+ *
+ * @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 testBitBltCheckerBufferedImageTypeIntARGB_Pre_backgroundCyan(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltCheckerBufferedImageTypeIntARGBPre(image, graphics2d, Color.cyan);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_INT_ARGB_PRE.
+ * Background color is set to Color.red.
+ *
+ * @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 testBitBltCheckerBufferedImageTypeIntARGB_Pre_backgroundRed(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltCheckerBufferedImageTypeIntARGBPre(image, graphics2d, Color.red);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_INT_ARGB_PRE.
+ * Background color is set to Color.magenta.
+ *
+ * @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 testBitBltCheckerBufferedImageTypeIntARGB_Pre_backgroundMagenta(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltCheckerBufferedImageTypeIntARGBPre(image, graphics2d, Color.magenta);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_INT_ARGB_PRE.
+ * 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 testBitBltCheckerBufferedImageTypeIntARGB_Pre_backgroundYellow(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltCheckerBufferedImageTypeIntARGBPre(image, graphics2d, Color.yellow);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_INT_ARGB_PRE.
+ * Background color is set to Color.white.
+ *
+ * @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 testBitBltCheckerBufferedImageTypeIntARGB_Pre_backgroundWhite(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltCheckerBufferedImageTypeIntARGBPre(image, graphics2d, Color.white);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_BYTE_BINARY.
+ * Background color is set to Color.black.
+ *
+ * @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 testBitBltCheckerBufferedImageTypeByteBinaryBackgroundBlack(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltCheckerBufferedImageTypeByteBinary(image, graphics2d, Color.black);
+ }
+
+ /**
* Entry point to the test suite.
*
* @param args not used in this case
More information about the distro-pkg-dev
mailing list