/hg/gfx-test: Added eight new tests to the test suite BitBltUsin...
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Fri Jan 18 01:30:38 PST 2013
changeset ffa18b18baa2 in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=ffa18b18baa2
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Fri Jan 18 10:33:38 2013 +0100
Added eight new tests to the test suite BitBltUsingBgColor.
diffstat:
ChangeLog | 5 +
src/org/gfxtest/testsuites/BitBltUsingBgColor.java | 120 +++++++++++++++++++++
2 files changed, 125 insertions(+), 0 deletions(-)
diffs (142 lines):
diff -r 728d592fdd88 -r ffa18b18baa2 ChangeLog
--- a/ChangeLog Thu Jan 17 10:57:08 2013 +0100
+++ b/ChangeLog Fri Jan 18 10:33:38 2013 +0100
@@ -1,3 +1,8 @@
+2013-01-18 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/gfxtest/testsuites/BitBltUsingBgColor.java:
+ Added eight new tests to this test suite.
+
2013-01-17 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/gfxtest/testsuites/Paths.java:
diff -r 728d592fdd88 -r ffa18b18baa2 src/org/gfxtest/testsuites/BitBltUsingBgColor.java
--- a/src/org/gfxtest/testsuites/BitBltUsingBgColor.java Thu Jan 17 10:57:08 2013 +0100
+++ b/src/org/gfxtest/testsuites/BitBltUsingBgColor.java Fri Jan 18 10:33:38 2013 +0100
@@ -1006,6 +1006,126 @@
}
/**
+ * Test basic BitBlt operation for empty buffered image with type TYPE_INT_ARGB_PRE.
+ * 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 testBitBltEmptyBufferedImageTypeIntARGB_Pre_backgroundBlack(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageTypeIntARGBPre(image, graphics2d, Color.black);
+ }
+
+ /**
+ * Test basic BitBlt operation for empty buffered image with type TYPE_INT_ARGB_PRE.
+ * 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 testBitBltEmptyBufferedImageTypeIntARGB_Pre_backgroundBlue(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageTypeIntARGBPre(image, graphics2d, Color.blue);
+ }
+
+ /**
+ * Test basic BitBlt operation for empty buffered image with type TYPE_INT_ARGB_PRE.
+ * 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 testBitBltEmptyBufferedImageTypeIntARGB_Pre_backgroundGreen(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageTypeIntARGBPre(image, graphics2d, Color.green);
+ }
+
+ /**
+ * Test basic BitBlt operation for empty buffered image with type TYPE_INT_ARGB_PRE.
+ * 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 testBitBltEmptyBufferedImageTypeIntARGB_Pre_backgroundCyan(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageTypeIntARGBPre(image, graphics2d, Color.cyan);
+ }
+
+ /**
+ * Test basic BitBlt operation for empty buffered image with type TYPE_INT_ARGB_PRE.
+ * 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 testBitBltEmptyBufferedImageTypeIntARGB_Pre_backgroundRed(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageTypeIntARGBPre(image, graphics2d, Color.red);
+ }
+
+ /**
+ * Test basic BitBlt operation for empty buffered image with type TYPE_INT_ARGB_PRE.
+ * 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 testBitBltEmptyBufferedImageTypeIntARGB_Pre_backgroundMagenta(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageTypeIntARGBPre(image, graphics2d, Color.magenta);
+ }
+
+ /**
+ * Test basic BitBlt operation for empty buffered image with type TYPE_INT_ARGB_PRE.
+ * 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 testBitBltEmptyBufferedImageTypeIntARGB_Pre_backgroundYellow(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageTypeIntARGBPre(image, graphics2d, Color.yellow);
+ }
+
+ /**
+ * Test basic BitBlt operation for empty buffered image with type TYPE_INT_ARGB_PRE.
+ * 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 testBitBltEmptyBufferedImageTypeIntARGB_Pre_backgroundWhite(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageTypeIntARGBPre(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