/hg/gfx-test: Another set of new tests added into BitBltCropImage.
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Fri Jun 28 01:52:43 PDT 2013
changeset bb5ab798f6a9 in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=bb5ab798f6a9
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Fri Jun 28 10:56:15 2013 +0200
Another set of new tests added into BitBltCropImage.
diffstat:
ChangeLog | 5 +
src/org/gfxtest/testsuites/BitBltCropImage.java | 68 ++++++++++++++++++++++++-
2 files changed, 72 insertions(+), 1 deletions(-)
diffs (90 lines):
diff -r ac3310860be8 -r bb5ab798f6a9 ChangeLog
--- a/ChangeLog Thu Jun 27 15:13:01 2013 +0200
+++ b/ChangeLog Fri Jun 28 10:56:15 2013 +0200
@@ -1,3 +1,8 @@
+2013-06-28 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/gfxtest/testsuites/BitBltCropImage.java:
+ Another set of new tests added into BitBltCropImage.
+
2013-06-27 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/gfxtest/testsuites/BitBltCropImage.java:
diff -r ac3310860be8 -r bb5ab798f6a9 src/org/gfxtest/testsuites/BitBltCropImage.java
--- a/src/org/gfxtest/testsuites/BitBltCropImage.java Thu Jun 27 15:13:01 2013 +0200
+++ b/src/org/gfxtest/testsuites/BitBltCropImage.java Fri Jun 28 10:56:15 2013 +0200
@@ -792,7 +792,73 @@
public TestResult testBitBltCheckerBufferedImageTypeUshort555RGBCropNE(TestImage image, Graphics2D graphics2d)
{
// create new buffered image and then perform BitBlt test using crop operation.
- return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_BYTE_GRAY,
+ return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_USHORT_555_RGB,
+ BitmapCropRegions.CROP_REGION_NE);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type
+ * TYPE_USHORT_555_RGB. Image is cropped so only south-west quarter of it is rendered.
+ *
+ * @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 testBitBltCheckerBufferedImageTypeUshort555RGBCropSW(TestImage image, Graphics2D graphics2d)
+ {
+ // create new buffered image and then perform BitBlt test using crop operation.
+ return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_USHORT_555_RGB,
+ BitmapCropRegions.CROP_REGION_SW);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type
+ * TYPE_USHORT_555_RGB. Image is cropped so only south-east quarter of it is rendered.
+ *
+ * @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 testBitBltCheckerBufferedImageTypeUshort555RGBCropSE(TestImage image, Graphics2D graphics2d)
+ {
+ // create new buffered image and then perform BitBlt test using crop operation.
+ return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_USHORT_555_RGB,
+ BitmapCropRegions.CROP_REGION_SE);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_USHORT_565_RGB.
+ * No crop is performed to that image.
+ * @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 testBitBltCheckerBufferedImageTypeUshort565RGBNoCrop(TestImage image, Graphics2D graphics2d)
+ {
+ // create new buffered image and then perform BitBlt test using crop operation.
+ return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_USHORT_565_RGB);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type
+ * TYPE_USHORT_565_RGB. Image is cropped so only north-west quarter of it is rendered.
+ *
+ * @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 testBitBltCheckerBufferedImageTypeUshort565RGBCropNW(TestImage image, Graphics2D graphics2d)
+ {
+ // create new buffered image and then perform BitBlt test using crop operation.
+ return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_USHORT_565_RGB,
BitmapCropRegions.CROP_REGION_NW);
}
More information about the distro-pkg-dev
mailing list