/hg/gfx-test: Added ten new tests into BitBltCropImage.
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Fri Jun 14 01:01:20 PDT 2013
changeset 9da4ad7fe2ec in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=9da4ad7fe2ec
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Fri Jun 14 10:04:50 2013 +0200
Added ten new tests into BitBltCropImage.
diffstat:
ChangeLog | 5 +
src/org/gfxtest/testsuites/BitBltCropImage.java | 134 ++++++++++++++++++++++++
2 files changed, 139 insertions(+), 0 deletions(-)
diffs (156 lines):
diff -r f0274d19f89f -r 9da4ad7fe2ec ChangeLog
--- a/ChangeLog Thu Jun 13 14:06:13 2013 +0200
+++ b/ChangeLog Fri Jun 14 10:04:50 2013 +0200
@@ -1,3 +1,8 @@
+2013-06-14 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/gfxtest/testsuites/BitBltCropImage.java:
+ Added ten new tests into BitBltCropImage.
+
2013-06-13 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/gfxtest/testsuites/BitBltBasicTests.java:
diff -r f0274d19f89f -r 9da4ad7fe2ec src/org/gfxtest/testsuites/BitBltCropImage.java
--- a/src/org/gfxtest/testsuites/BitBltCropImage.java Thu Jun 13 14:06:13 2013 +0200
+++ b/src/org/gfxtest/testsuites/BitBltCropImage.java Fri Jun 14 10:04:50 2013 +0200
@@ -182,6 +182,140 @@
/**
* Test basic BitBlt operation for checker buffered image with type
+ * TYPE_4BYTE_ABGR. 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 testBitBltCheckerBufferedImageType4ByteABGRCropNW(TestImage image, Graphics2D graphics2d)
+ {
+ // create new buffered image and then perform BitBlt test using crop operation.
+ return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_4BYTE_ABGR,
+ BitmapCropRegions.CROP_REGION_NW);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type
+ * TYPE_4BYTE_ABGR. Image is cropped so only north-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 testBitBltCheckerBufferedImageType4ByteABGRCropNE(TestImage image, Graphics2D graphics2d)
+ {
+ // create new buffered image and then perform BitBlt test using crop operation.
+ return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_4BYTE_ABGR,
+ BitmapCropRegions.CROP_REGION_NE);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type
+ * TYPE_4BYTE_ABGR. 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 testBitBltCheckerBufferedImageType4ByteABGRCropSW(TestImage image, Graphics2D graphics2d)
+ {
+ // create new buffered image and then perform BitBlt test using crop operation.
+ return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_4BYTE_ABGR,
+ BitmapCropRegions.CROP_REGION_SW);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type
+ * TYPE_4BYTE_ABGR. 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 testBitBltCheckerBufferedImageType4ByteABGRCropSE(TestImage image, Graphics2D graphics2d)
+ {
+ // create new buffered image and then perform BitBlt test using crop operation.
+ return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_4BYTE_ABGR,
+ BitmapCropRegions.CROP_REGION_SE);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_4BYTE_ABGR_PRE.
+ * 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 testBitBltCheckerBufferedImageType4ByteABGR_preNoCrop(TestImage image, Graphics2D graphics2d)
+ {
+ // create new buffered image and then perform BitBlt test using crop operation.
+ return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_4BYTE_ABGR_PRE);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type
+ * TYPE_4BYTE_ABGR_PRE. 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 testBitBltCheckerBufferedImageType4ByteABGR_preCropNW(TestImage image, Graphics2D graphics2d)
+ {
+ // create new buffered image and then perform BitBlt test using crop operation.
+ return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_4BYTE_ABGR_PRE,
+ BitmapCropRegions.CROP_REGION_NW);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type
+ * TYPE_4BYTE_ABGR_PRE. Image is cropped so only north-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 testBitBltCheckerBufferedImageType4ByteABGR_preCropNE(TestImage image, Graphics2D graphics2d)
+ {
+ // create new buffered image and then perform BitBlt test using crop operation.
+ return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_4BYTE_ABGR_PRE,
+ BitmapCropRegions.CROP_REGION_NE);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type
+ * TYPE_4BYTE_ABGR_PRE. 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 testBitBltCheckerBufferedImageType4ByteABGR_preCropSW(TestImage image, Graphics2D graphics2d)
+ {
+ // create new buffered image and then perform BitBlt test using crop operation.
+ return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_4BYTE_ABGR_PRE,
+ BitmapCropRegions.CROP_REGION_SW);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type
* TYPE_BYTE_BINARY. No crop is performed to that image.
*
* @param image
More information about the distro-pkg-dev
mailing list