/hg/gfx-test: Nine new tests added into BitBltBufferedImageOp.
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Fri Sep 20 02:31:23 PDT 2013
changeset 14efcf650603 in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=14efcf650603
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Fri Sep 20 11:35:10 2013 +0200
Nine new tests added into BitBltBufferedImageOp.
diffstat:
ChangeLog | 5 +
src/org/gfxtest/testsuites/BitBltBufferedImageOp.java | 153 ++++++++++++++++++
2 files changed, 158 insertions(+), 0 deletions(-)
diffs (175 lines):
diff -r d1dd2cc5a2c0 -r 14efcf650603 ChangeLog
--- a/ChangeLog Thu Sep 19 09:47:24 2013 +0200
+++ b/ChangeLog Fri Sep 20 11:35:10 2013 +0200
@@ -1,3 +1,8 @@
+2013-09-20 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/gfxtest/testsuites/BitBltBufferedImageOp.java:
+ Nine new tests added into BitBltBufferedImageOp.
+
2013-09-19 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/gfxtest/testsuites/BitBltAffineQuadrantRotateTransformOp.java:
diff -r d1dd2cc5a2c0 -r 14efcf650603 src/org/gfxtest/testsuites/BitBltBufferedImageOp.java
--- a/src/org/gfxtest/testsuites/BitBltBufferedImageOp.java Thu Sep 19 09:47:24 2013 +0200
+++ b/src/org/gfxtest/testsuites/BitBltBufferedImageOp.java Fri Sep 20 11:35:10 2013 +0200
@@ -567,6 +567,159 @@
}
/**
+ * Test basic BitBlt operation for diagonal checker buffered image with type {@link BufferedImage#TYPE_4BYTE_ABGR}.
+ *
+ * @param image
+ * image used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @param rasterOp
+ * selected raster operation
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ protected TestResult doBitBltDiagonalCheckerBufferedImageType4ByteABGR(TestImage image, Graphics2D graphics2d,
+ BufferedImageOp rasterOp)
+ {
+ return CommonBitmapOperations.doBitBltTestWithDiagonalCheckerImage(image, graphics2d, BufferedImage.TYPE_4BYTE_ABGR, rasterOp);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal checker buffered image with type {@link BufferedImage#TYPE_4BYTE_ABGR_PRE}.
+ *
+ * @param image
+ * image used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @param rasterOp
+ * selected raster operation
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ protected TestResult doBitBltDiagonalCheckerBufferedImageType4ByteABGRPre(TestImage image, Graphics2D graphics2d,
+ BufferedImageOp rasterOp)
+ {
+ return CommonBitmapOperations.doBitBltTestWithDiagonalCheckerImage(image, graphics2d, BufferedImage.TYPE_4BYTE_ABGR_PRE, rasterOp);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal checker buffered image with type {@link BufferedImage#TYPE_INT_ARGB}.
+ *
+ * @param image
+ * image used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @param rasterOp
+ * selected raster operation
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ protected TestResult doBitBltDiagonalCheckerBufferedImageTypeIntARGB(TestImage image, Graphics2D graphics2d,
+ BufferedImageOp rasterOp)
+ {
+ return CommonBitmapOperations.doBitBltTestWithDiagonalCheckerImage(image, graphics2d, BufferedImage.TYPE_INT_ARGB, rasterOp);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal checker buffered image with type {@link BufferedImage#TYPE_INT_ARGB_PRE}.
+ *
+ * @param image
+ * image used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @param rasterOp
+ * selected raster operation
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ protected TestResult doBitBltDiagonalCheckerBufferedImageTypeIntARGBPre(TestImage image, Graphics2D graphics2d,
+ BufferedImageOp rasterOp)
+ {
+ return CommonBitmapOperations.doBitBltTestWithDiagonalCheckerImage(image, graphics2d, BufferedImage.TYPE_INT_ARGB_PRE, rasterOp);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal checker buffered image with type {@link BufferedImage#TYPE_INT_BGR}.
+ *
+ * @param image
+ * image used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @param rasterOp
+ * selected raster operation
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ protected TestResult doBitBltDiagonalCheckerBufferedImageTypeIntBGR(TestImage image, Graphics2D graphics2d,
+ BufferedImageOp rasterOp)
+ {
+ return CommonBitmapOperations.doBitBltTestWithDiagonalCheckerImage(image, graphics2d, BufferedImage.TYPE_INT_BGR, rasterOp);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal checker buffered image with type {@link BufferedImage#TYPE_INT_RGB}.
+ *
+ * @param image
+ * image used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @param rasterOp
+ * selected raster operation
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ protected TestResult doBitBltDiagonalCheckerBufferedImageTypeIntRGB(TestImage image, Graphics2D graphics2d,
+ BufferedImageOp rasterOp)
+ {
+ return CommonBitmapOperations.doBitBltTestWithDiagonalCheckerImage(image, graphics2d, BufferedImage.TYPE_INT_RGB, rasterOp);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal checker buffered image with type {@link BufferedImage#TYPE_USHORT_555_RGB}.
+ *
+ * @param image
+ * image used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @param rasterOp
+ * selected raster operation
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ protected TestResult doBitBltDiagonalCheckerBufferedImageTypeUshort555RGB(TestImage image, Graphics2D graphics2d,
+ BufferedImageOp rasterOp)
+ {
+ return CommonBitmapOperations.doBitBltTestWithDiagonalCheckerImage(image, graphics2d, BufferedImage.TYPE_USHORT_555_RGB, rasterOp);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal checker buffered image with type {@link BufferedImage#TYPE_USHORT_565_RGB}.
+ *
+ * @param image
+ * image used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @param rasterOp
+ * selected raster operation
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ protected TestResult doBitBltDiagonalCheckerBufferedImageTypeUshort565RGB(TestImage image, Graphics2D graphics2d,
+ BufferedImageOp rasterOp)
+ {
+ return CommonBitmapOperations.doBitBltTestWithDiagonalCheckerImage(image, graphics2d, BufferedImage.TYPE_USHORT_565_RGB, rasterOp);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal checker buffered image with type {@link BufferedImage#TYPE_USHORT_GRAY}.
+ *
+ * @param image
+ * image used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @param rasterOp
+ * selected raster operation
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ protected TestResult doBitBltDiagonalCheckerBufferedImageTypeUshortGray(TestImage image, Graphics2D graphics2d,
+ BufferedImageOp rasterOp)
+ {
+ return CommonBitmapOperations.doBitBltTestWithDiagonalCheckerImage(image, graphics2d, BufferedImage.TYPE_USHORT_GRAY, rasterOp);
+ }
+
+ /**
* Test basic BitBlt operation for buffered image containing grid pattern
* with type TYPE_3BYTE_BGR
*
More information about the distro-pkg-dev
mailing list