/hg/gfx-test: Added five new tests to the test suite src/org/gfx...
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Fri Oct 19 02:57:45 PDT 2012
changeset d1e778d4c093 in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=d1e778d4c093
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Fri Oct 19 12:00:31 2012 +0200
Added five new tests to the test suite src/org/gfxtest/testsuites/BitBltCropImage.java.
diffstat:
ChangeLog | 5 +
src/org/gfxtest/testsuites/BitBltCropImage.java | 83 +++++++++++++++++++++++++
2 files changed, 88 insertions(+), 0 deletions(-)
diffs (105 lines):
diff -r 43a3d3f76330 -r d1e778d4c093 ChangeLog
--- a/ChangeLog Thu Oct 18 10:37:07 2012 +0200
+++ b/ChangeLog Fri Oct 19 12:00:31 2012 +0200
@@ -1,3 +1,8 @@
+2012-10-19 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/gfxtest/testsuites/BitBltCropImage.java:
+ Added five new tests.
+
2012-10-18 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/gfxtest/testsuites/BitBltScaleImage.java:
diff -r 43a3d3f76330 -r d1e778d4c093 src/org/gfxtest/testsuites/BitBltCropImage.java
--- a/src/org/gfxtest/testsuites/BitBltCropImage.java Thu Oct 18 10:37:07 2012 +0200
+++ b/src/org/gfxtest/testsuites/BitBltCropImage.java Fri Oct 19 12:00:31 2012 +0200
@@ -416,6 +416,89 @@
}
/**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_4BYTE_ABGR_PRE.
+ * No crop is performed to that image.
+ * @param image
+ * image to which line is to be drawn
+ * @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 to which line is to be drawn
+ * @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 to which line is to be drawn
+ * @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 to which line is to be drawn
+ * @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_4BYTE_ABGR_PRE. Image is cropped so only south-east quarter of it is rendered.
+ *
+ * @param image
+ * image to which line is to be drawn
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testBitBltCheckerBufferedImageType4ByteABGR_preCropSE(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_SE);
+ }
+
+ /**
* Entry point to the test suite.
*
* @param args
More information about the distro-pkg-dev
mailing list