/hg/gfx-test: Eight new common test methods added into BitBltBuf...
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Thu Mar 20 08:36:06 UTC 2014
changeset bcdf88e32236 in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=bcdf88e32236
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Thu Mar 20 09:36:49 2014 +0100
Eight new common test methods added into BitBltBufferedImageOp.
diffstat:
ChangeLog | 5 +
src/org/gfxtest/testsuites/BitBltBufferedImageOp.java | 162 +++++++++++++++++-
2 files changed, 166 insertions(+), 1 deletions(-)
diffs (191 lines):
diff -r 117344d3f5e1 -r bcdf88e32236 ChangeLog
--- a/ChangeLog Wed Mar 19 10:59:00 2014 +0100
+++ b/ChangeLog Thu Mar 20 09:36:49 2014 +0100
@@ -1,3 +1,8 @@
+2014-03-20 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/gfxtest/testsuites/BitBltBufferedImageOp.java:
+ Eight new common test methods added into BitBltBufferedImageOp.
+
2014-03-19 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/gfxtest/testsuites/BitBltAffineIdentityTransformOp.java:
diff -r 117344d3f5e1 -r bcdf88e32236 src/org/gfxtest/testsuites/BitBltBufferedImageOp.java
--- a/src/org/gfxtest/testsuites/BitBltBufferedImageOp.java Wed Mar 19 10:59:00 2014 +0100
+++ b/src/org/gfxtest/testsuites/BitBltBufferedImageOp.java Thu Mar 20 09:36:49 2014 +0100
@@ -1,7 +1,7 @@
/*
Java gfx-test framework
- Copyright (C) 2012, 2013 Red Hat
+ Copyright (C) 2012, 2013, 2014 Red Hat
This file is part of IcedTea.
@@ -1281,6 +1281,166 @@
}
/**
+ * Test basic BitBlt operation for buffered image with type {@link BufferedImage#TYPE_3BYTE_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 doBitBltHorizontalStripesType3ByteBGR(TestImage image, Graphics2D graphics2d, BufferedImageOp rasterOp)
+ {
+ return CommonBitmapOperations.doBitBltTestWithHorizontalStripesImage(image, graphics2d, BufferedImage.TYPE_3BYTE_BGR, rasterOp);
+ }
+
+ /**
+ * Test basic BitBlt operation for 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 doBitBltHorizontalStripesType4ByteABGR(TestImage image, Graphics2D graphics2d, BufferedImageOp rasterOp)
+ {
+ return CommonBitmapOperations.doBitBltTestWithHorizontalStripesImage(image, graphics2d, BufferedImage.TYPE_4BYTE_ABGR, rasterOp);
+ }
+
+ /**
+ * Test basic BitBlt operation for 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 doBitBltHorizontalStripesType4ByteABGR_Pre(TestImage image, Graphics2D graphics2d, BufferedImageOp rasterOp)
+ {
+ return CommonBitmapOperations.doBitBltTestWithHorizontalStripesImage(image, graphics2d, BufferedImage.TYPE_4BYTE_ABGR_PRE, rasterOp);
+ }
+
+ /**
+ * Test basic BitBlt operation for buffered image with type {@link BufferedImage#TYPE_BYTE_BINARY}.
+ *
+ * @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 doBitBltHorizontalStripesTypeByteBinary(TestImage image, Graphics2D graphics2d, BufferedImageOp rasterOp)
+ {
+ return CommonBitmapOperations.doBitBltTestWithHorizontalStripesImage(image, graphics2d, BufferedImage.TYPE_BYTE_BINARY, rasterOp);
+ }
+
+ /**
+ * Test basic BitBlt operation for buffered image with type {@link BufferedImage#TYPE_BYTE_INDEXED}.
+ *
+ * @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 doBitBltHorizontalStripesTypeByteIndexed(TestImage image, Graphics2D graphics2d, BufferedImageOp rasterOp)
+ {
+ return CommonBitmapOperations.doBitBltTestWithHorizontalStripesImage(image, graphics2d, BufferedImage.TYPE_BYTE_INDEXED, rasterOp);
+ }
+
+ /**
+ * Test basic BitBlt operation for buffered image with type {@link BufferedImage#TYPE_BYTE_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 doBitBltHorizontalStripesTypeByteGray(TestImage image, Graphics2D graphics2d, BufferedImageOp rasterOp)
+ {
+ return CommonBitmapOperations.doBitBltTestWithHorizontalStripesImage(image, graphics2d, BufferedImage.TYPE_BYTE_GRAY, rasterOp);
+ }
+
+ /**
+ * Test basic BitBlt operation for 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 doBitBltHorizontalStripesTypeIntBGR(TestImage image, Graphics2D graphics2d, BufferedImageOp rasterOp)
+ {
+ return CommonBitmapOperations.doBitBltTestWithHorizontalStripesImage(image, graphics2d, BufferedImage.TYPE_INT_BGR, rasterOp);
+ }
+
+ /**
+ * Test basic BitBlt operation for 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 doBitBltHorizontalStripesTypeIntRGB(TestImage image, Graphics2D graphics2d, BufferedImageOp rasterOp)
+ {
+ return CommonBitmapOperations.doBitBltTestWithHorizontalStripesImage(image, graphics2d, BufferedImage.TYPE_INT_RGB, rasterOp);
+ }
+
+ /**
+ * Test basic BitBlt operation for 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 doBitBltHorizontalStripesTypeIntARGB(TestImage image, Graphics2D graphics2d, BufferedImageOp rasterOp)
+ {
+ return CommonBitmapOperations.doBitBltTestWithHorizontalStripesImage(image, graphics2d, BufferedImage.TYPE_INT_ARGB, rasterOp);
+ }
+
+ /**
+ * Test basic BitBlt operation for 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 doBitBltHorizontalStripesTypeIntARGB_Pre(TestImage image, Graphics2D graphics2d, BufferedImageOp rasterOp)
+ {
+ return CommonBitmapOperations.doBitBltTestWithHorizontalStripesImage(image, graphics2d, BufferedImage.TYPE_INT_ARGB_PRE, rasterOp);
+ }
+
+ /**
* Entry point to the test suite.
*
* @param args not used in this case
More information about the distro-pkg-dev
mailing list