/hg/gfx-test: Added eight new tests to the test suite
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Tue Oct 23 03:08:28 PDT 2012
changeset f649871e5624 in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=f649871e5624
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Tue Oct 23 12:11:13 2012 +0200
Added eight new tests to the test suite
src/org/gfxtest/testsuites/PrintTestBitBltMirrorImage.java.
diffstat:
ChangeLog | 5 +
src/org/gfxtest/testsuites/PrintTestBitBltMirrorImage.java | 120 +++++++++++++
2 files changed, 125 insertions(+), 0 deletions(-)
diffs (142 lines):
diff -r d1e778d4c093 -r f649871e5624 ChangeLog
--- a/ChangeLog Fri Oct 19 12:00:31 2012 +0200
+++ b/ChangeLog Tue Oct 23 12:11:13 2012 +0200
@@ -1,3 +1,8 @@
+2012-10-23 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/gfxtest/testsuites/PrintTestBitBltMirrorImage.java:
+ Added eight new tests to this test suite.
+
2012-10-19 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/gfxtest/testsuites/BitBltCropImage.java:
diff -r d1e778d4c093 -r f649871e5624 src/org/gfxtest/testsuites/PrintTestBitBltMirrorImage.java
--- a/src/org/gfxtest/testsuites/PrintTestBitBltMirrorImage.java Fri Oct 19 12:00:31 2012 +0200
+++ b/src/org/gfxtest/testsuites/PrintTestBitBltMirrorImage.java Tue Oct 23 12:11:13 2012 +0200
@@ -258,6 +258,126 @@
}
/**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_INT_ARGB.
+ * No flip 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 testBitBltCheckerBufferedImageTypeIntARGBNoFlip(TestImage image, Graphics2D graphics2d)
+ {
+ return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_INT_ARGB, false, false);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_INT_ARGB.
+ * Horizontal flip is performed on 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 testBitBltCheckerBufferedImageTypeIntARGBHorizontalFlip(TestImage image, Graphics2D graphics2d)
+ {
+ return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_INT_ARGB, true, false);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_INT_ARGB.
+ * Vertical flip is performed on 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 testBitBltCheckerBufferedImageTypeIntARGBVerticalFlip(TestImage image, Graphics2D graphics2d)
+ {
+ return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_INT_ARGB, false, true);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_INT_ARGB.
+ * Horizontal and vertical flips are performed on 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 testBitBltCheckerBufferedImageTypeIntARGBHorizontalAndVerticalFlip(TestImage image, Graphics2D graphics2d)
+ {
+ return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_INT_ARGB, true, true);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_INT_ARGB_PRE.
+ * No flip 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 testBitBltCheckerBufferedImageTypeIntARGB_PreNoFlip(TestImage image, Graphics2D graphics2d)
+ {
+ return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_INT_ARGB_PRE, false, false);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_INT_ARGB_PRE.
+ * Horizontal flip is performed on 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 testBitBltCheckerBufferedImageTypeIntARGB_PreHorizontalFlip(TestImage image, Graphics2D graphics2d)
+ {
+ return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_INT_ARGB_PRE, true, false);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_INT_ARGB_PRE.
+ * Vertical flip is performed on 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 testBitBltCheckerBufferedImageTypeIntARGB_PreVerticalFlip(TestImage image, Graphics2D graphics2d)
+ {
+ return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_INT_ARGB_PRE, false, true);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_INT_ARGB_PRE.
+ * Horizontal and vertical flips are performed on 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 testBitBltCheckerBufferedImageTypeIntARGB_PreHorizontalAndVerticalFlip(TestImage image, Graphics2D graphics2d)
+ {
+ return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_INT_ARGB_PRE, true, true);
+ }
+
+ /**
* Entry point to the test suite.
*
* @param args
More information about the distro-pkg-dev
mailing list