/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 12 00:57:36 PDT 2012
changeset 851bc51b042a in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=851bc51b042a
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Fri Oct 12 10:00:21 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 3b531b10ce5c -r 851bc51b042a ChangeLog
--- a/ChangeLog Thu Oct 11 12:22:14 2012 +0200
+++ b/ChangeLog Fri Oct 12 10:00:21 2012 +0200
@@ -1,3 +1,8 @@
+2012-10-12 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/gfxtest/testsuites/BitBltCropImage.java:
+ Added five new tests to this test suite.
+
2012-10-11 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/gfxtest/testsuites/PrintTestBitBlt.java:
diff -r 3b531b10ce5c -r 851bc51b042a src/org/gfxtest/testsuites/BitBltCropImage.java
--- a/src/org/gfxtest/testsuites/BitBltCropImage.java Thu Oct 11 12:22:14 2012 +0200
+++ b/src/org/gfxtest/testsuites/BitBltCropImage.java Fri Oct 12 10:00:21 2012 +0200
@@ -333,6 +333,89 @@
}
/**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_4BYTE_ABGR.
+ * 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 testBitBltCheckerBufferedImageType4ByteABGRNoCrop(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);
+ }
+
+ /**
+ * 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 to which line is to be drawn
+ * @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 to which line is to be drawn
+ * @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 to which line is to be drawn
+ * @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 to which line is to be drawn
+ * @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);
+ }
+
+ /**
* Entry point to the test suite.
*
* @param args
More information about the distro-pkg-dev
mailing list