/hg/gfx-test: Another ten new tests added into BitBltUsingBgColo...
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Fri Jan 24 05:03:42 PST 2014
changeset 840cb462723e in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=840cb462723e
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Fri Jan 24 14:07:59 2014 +0100
Another 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 48428250e782 -r 840cb462723e ChangeLog
--- a/ChangeLog Thu Jan 23 13:25:12 2014 +0100
+++ b/ChangeLog Fri Jan 24 14:07:59 2014 +0100
@@ -1,3 +1,8 @@
+2014-01-24 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/gfxtest/testsuites/BitBltUsingBgColor.java:
+ Another ten new tests added into BitBltUsingBgColor test suite.
+
2014-01-23 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/gfxtest/testsuites/BitBltUsingBgColor.java:
diff -r 48428250e782 -r 840cb462723e src/org/gfxtest/testsuites/BitBltUsingBgColor.java
--- a/src/org/gfxtest/testsuites/BitBltUsingBgColor.java Thu Jan 23 13:25:12 2014 +0100
+++ b/src/org/gfxtest/testsuites/BitBltUsingBgColor.java Fri Jan 24 14:07:59 2014 +0100
@@ -5252,6 +5252,156 @@
}
/**
+ * Test basic BitBlt operation for diagonal checker buffered image with type TYPE_BYTE_BINARY.
+ * 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 testBitBltDiagonalCheckerBufferedImageTypeByteBinaryBackgroundWhite(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltDiagonalCheckerBufferedImageTypeByteBinary(image, graphics2d, Color.white);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal checker buffered image with type TYPE_BYTE_GRAY.
+ * 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 testBitBltDiagonalCheckerBufferedImageTypeByteGrayBackgroundBlack(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltDiagonalCheckerBufferedImageTypeByteGray(image, graphics2d, Color.black);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal checker buffered image with type TYPE_BYTE_GRAY.
+ * 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 testBitBltDiagonalCheckerBufferedImageTypeByteGrayBackgroundBlue(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltDiagonalCheckerBufferedImageTypeByteGray(image, graphics2d, Color.blue);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal checker buffered image with type TYPE_BYTE_GRAY.
+ * 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 testBitBltDiagonalCheckerBufferedImageTypeByteGrayBackgroundGreen(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltDiagonalCheckerBufferedImageTypeByteGray(image, graphics2d, Color.green);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal checker buffered image with type TYPE_BYTE_GRAY.
+ * 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 testBitBltDiagonalCheckerBufferedImageTypeByteGrayBackgroundCyan(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltDiagonalCheckerBufferedImageTypeByteGray(image, graphics2d, Color.cyan);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal checker buffered image with type TYPE_BYTE_GRAY.
+ * 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 testBitBltDiagonalCheckerBufferedImageTypeByteGrayBackgroundRed(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltDiagonalCheckerBufferedImageTypeByteGray(image, graphics2d, Color.red);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal checker buffered image with type TYPE_BYTE_GRAY.
+ * 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 testBitBltDiagonalCheckerBufferedImageTypeByteGrayBackgroundMagenta(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltDiagonalCheckerBufferedImageTypeByteGray(image, graphics2d, Color.magenta);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal checker buffered image with type TYPE_BYTE_GRAY.
+ * 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 testBitBltDiagonalCheckerBufferedImageTypeByteGrayBackgroundYellow(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltDiagonalCheckerBufferedImageTypeByteGray(image, graphics2d, Color.yellow);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal checker buffered image with type TYPE_BYTE_GRAY.
+ * 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 testBitBltDiagonalCheckerBufferedImageTypeByteGrayBackgroundWhite(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltDiagonalCheckerBufferedImageTypeByteGray(image, graphics2d, Color.white);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal checker buffered image with type TYPE_BYTE_INDEXED.
+ * 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 testBitBltDiagonalCheckerBufferedImageTypeByteIndexedBackgroundBlack(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltDiagonalCheckerBufferedImageTypeByteIndexed(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