/hg/gfx-test: 12 new tests added to the test suite
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Mon Oct 15 06:28:20 PDT 2012
changeset f41d0e01c82e in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=f41d0e01c82e
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Mon Oct 15 15:31:06 2012 +0200
12 new tests added to the test suite
src/org/gfxtest/testsuites/PrintTestBitBltMirrorImage.java.
diffstat:
ChangeLog | 5 +
src/org/gfxtest/testsuites/PrintTestBitBltMirrorImage.java | 189 ++++++++++++-
2 files changed, 193 insertions(+), 1 deletions(-)
diffs (219 lines):
diff -r 851bc51b042a -r f41d0e01c82e ChangeLog
--- a/ChangeLog Fri Oct 12 10:00:21 2012 +0200
+++ b/ChangeLog Mon Oct 15 15:31:06 2012 +0200
@@ -1,3 +1,8 @@
+2012-10-15 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/gfxtest/testsuites/PrintTestBitBltMirrorImage.java:
+ 12 new tests added to this test suite.
+
2012-10-12 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/gfxtest/testsuites/BitBltCropImage.java:
diff -r 851bc51b042a -r f41d0e01c82e src/org/gfxtest/testsuites/PrintTestBitBltMirrorImage.java
--- a/src/org/gfxtest/testsuites/PrintTestBitBltMirrorImage.java Fri Oct 12 10:00:21 2012 +0200
+++ b/src/org/gfxtest/testsuites/PrintTestBitBltMirrorImage.java Mon Oct 15 15:31:06 2012 +0200
@@ -40,7 +40,15 @@
package org.gfxtest.testsuites;
+import java.awt.Graphics2D;
+import java.awt.image.BufferedImage;
+
+
+
+import org.gfxtest.framework.CommonBitmapOperations;
import org.gfxtest.framework.PrintTest;
+import org.gfxtest.framework.TestImage;
+import org.gfxtest.framework.TestResult;
import org.gfxtest.framework.annotations.BitBltOperation;
import org.gfxtest.framework.annotations.BitBltOperations;
import org.gfxtest.framework.annotations.GraphicsPrimitive;
@@ -69,7 +77,186 @@
@Zoom(1)
public class PrintTestBitBltMirrorImage extends PrintTest
{
-
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_BYTE_BINARY.
+ * 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 testBitBltCheckerBufferedImageTypeByteBinaryNoFlip(TestImage image, Graphics2D graphics2d)
+ {
+ return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_BYTE_BINARY, false, false);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_BYTE_BINARY.
+ * 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 testBitBltCheckerBufferedImageTypeByteBinaryHorizontalFlip(TestImage image, Graphics2D graphics2d)
+ {
+ return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_BYTE_BINARY, true, false);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_BYTE_BINARY.
+ * 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 testBitBltCheckerBufferedImageTypeByteBinaryVerticalFlip(TestImage image, Graphics2D graphics2d)
+ {
+ return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_BYTE_BINARY, false, true);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_BYTE_BINARY.
+ * 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 testBitBltCheckerBufferedImageTypeByteBinaryHorizontalAndVerticalFlip(TestImage image, Graphics2D graphics2d)
+ {
+ return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_BYTE_BINARY, true, true);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_INT_RGB.
+ * 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 testBitBltCheckerBufferedImageTypeIntRGBNoFlip(TestImage image, Graphics2D graphics2d)
+ {
+ return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_INT_RGB, false, false);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_INT_RGB.
+ * 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 testBitBltCheckerBufferedImageTypeIntRGBHorizontalFlip(TestImage image, Graphics2D graphics2d)
+ {
+ return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_INT_RGB, true, false);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_INT_RGB.
+ * 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 testBitBltCheckerBufferedImageTypeIntRGBVerticalFlip(TestImage image, Graphics2D graphics2d)
+ {
+ return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_INT_RGB, false, true);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_INT_RGB.
+ * 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 testBitBltCheckerBufferedImageTypeIntRGBHorizontalAndVerticalFlip(TestImage image, Graphics2D graphics2d)
+ {
+ return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_INT_RGB, true, true);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_INT_BGR.
+ * 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 testBitBltCheckerBufferedImageTypeIntBGRNoFlip(TestImage image, Graphics2D graphics2d)
+ {
+ return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_INT_BGR, false, false);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_INT_BGR.
+ * 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 testBitBltCheckerBufferedImageTypeIntBGRHorizontalFlip(TestImage image, Graphics2D graphics2d)
+ {
+ return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_INT_BGR, true, false);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_INT_BGR.
+ * 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 testBitBltCheckerBufferedImageTypeIntBGRVerticalFlip(TestImage image, Graphics2D graphics2d)
+ {
+ return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_INT_BGR, false, true);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_INT_BGR.
+ * 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 testBitBltCheckerBufferedImageTypeIntBGRHorizontalAndVerticalFlip(TestImage image, Graphics2D graphics2d)
+ {
+ return CommonBitmapOperations.doBitBltTestWithCheckerImage(image, graphics2d, BufferedImage.TYPE_INT_BGR, true, true);
+ }
+
/**
* Entry point to the test suite.
*
More information about the distro-pkg-dev
mailing list