/hg/gfx-test: Ten new tests added into BitBltUsingBgColor test s...
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Thu Jun 20 02:08:01 PDT 2013
changeset 6be1d654c48d in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=6be1d654c48d
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Thu Jun 20 11:11:32 2013 +0200
Ten new tests added into BitBltUsingBgColor test suite.
diffstat:
ChangeLog | 5 +
src/org/gfxtest/testsuites/BitBltUsingBgColor.java | 156 +++++++++++++++++++++
2 files changed, 161 insertions(+), 0 deletions(-)
diffs (185 lines):
diff -r 874dc662bb7d -r 6be1d654c48d ChangeLog
--- a/ChangeLog Wed Jun 19 16:45:32 2013 +0200
+++ b/ChangeLog Thu Jun 20 11:11:32 2013 +0200
@@ -1,3 +1,8 @@
+2013-06-20 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/gfxtest/testsuites/BitBltUsingBgColor.java:
+ Ten new tests added into BitBltUsingBgColor test suite.
+
2013-06-19 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/gfxtest/testsuites/BitBltAffineScaleTransformOp.java:
diff -r 874dc662bb7d -r 6be1d654c48d src/org/gfxtest/testsuites/BitBltUsingBgColor.java
--- a/src/org/gfxtest/testsuites/BitBltUsingBgColor.java Wed Jun 19 16:45:32 2013 +0200
+++ b/src/org/gfxtest/testsuites/BitBltUsingBgColor.java Thu Jun 20 11:11:32 2013 +0200
@@ -694,6 +694,57 @@
}
/**
+ * Test basic BitBlt operation for diagonal checker buffered image with type TYPE_USHORT_555_RGB
+ *
+ * @param image
+ * image used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @param backgroundColor
+ * background color
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ private TestResult doBitBltDiagonalCheckerBufferedImageTypeUshort555RGB(TestImage image, Graphics2D graphics2d,
+ Color backgroundColor)
+ {
+ return CommonBitmapOperations.doBitBltTestWithDiagonalCheckerImage(image, graphics2d, BufferedImage.TYPE_USHORT_555_RGB, backgroundColor);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal checker buffered image with type TYPE_USHORT_565_RGB
+ *
+ * @param image
+ * image used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @param backgroundColor
+ * background color
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ private TestResult doBitBltDiagonalCheckerBufferedImageTypeUshort565RGB(TestImage image, Graphics2D graphics2d,
+ Color backgroundColor)
+ {
+ return CommonBitmapOperations.doBitBltTestWithDiagonalCheckerImage(image, graphics2d, BufferedImage.TYPE_USHORT_565_RGB, backgroundColor);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal checker buffered image with type TYPE_USHORT_GRAY
+ *
+ * @param image
+ * image used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @param backgroundColor
+ * background color
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ private TestResult doBitBltDiagonalCheckerBufferedImageTypeUshortGRAY(TestImage image, Graphics2D graphics2d,
+ Color backgroundColor)
+ {
+ return CommonBitmapOperations.doBitBltTestWithDiagonalCheckerImage(image, graphics2d, BufferedImage.TYPE_USHORT_GRAY, backgroundColor);
+ }
+
+ /**
* Test basic BitBlt operation for empty buffered image with type TYPE_3BYTE_BGR.
* Background color is set to Color.black.
*
@@ -2254,6 +2305,111 @@
}
/**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_3BYTE_BGR.
+ * Background color is set to Color.black.
+ *
+ * @param image
+ * image used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testBitBltCheckerBufferedImageType3ByteBGRbackgroundBlack(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltCheckerBufferedImageType3ByteRGB(image, graphics2d, Color.black);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_3BYTE_BGR.
+ * Background color is set to Color.blue.
+ *
+ * @param image
+ * image used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testBitBltCheckerBufferedImageType3ByteBGRbackgroundBlue(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltCheckerBufferedImageType3ByteRGB(image, graphics2d, Color.blue);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_3BYTE_BGR.
+ * Background color is set to Color.green.
+ *
+ * @param image
+ * image used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testBitBltCheckerBufferedImageType3ByteBGRbackgroundGreen(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltCheckerBufferedImageType3ByteRGB(image, graphics2d, Color.green);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_3BYTE_BGR.
+ * Background color is set to Color.cyan.
+ *
+ * @param image
+ * image used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testBitBltCheckerBufferedImageType3ByteBGRbackgroundCyan(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltCheckerBufferedImageType3ByteRGB(image, graphics2d, Color.cyan);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_3BYTE_BGR.
+ * Background color is set to Color.red.
+ *
+ * @param image
+ * image used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testBitBltCheckerBufferedImageType3ByteBGRbackgroundRed(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltCheckerBufferedImageType3ByteRGB(image, graphics2d, Color.red);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_3BYTE_BGR.
+ * Background color is set to Color.magenta.
+ *
+ * @param image
+ * image used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testBitBltCheckerBufferedImageType3ByteBGRbackgroundMagenta(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltCheckerBufferedImageType3ByteRGB(image, graphics2d, Color.magenta);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_3BYTE_BGR.
+ * Background color is set to Color.yellow.
+ *
+ * @param image
+ * image used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testBitBltCheckerBufferedImageType3ByteBGRbackgroundYellow(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltCheckerBufferedImageType3ByteRGB(image, graphics2d, Color.yellow);
+ }
+
+ /**
* Entry point to the test suite.
*
* @param args not used in this case
More information about the distro-pkg-dev
mailing list