/hg/gfx-test: Five new tests added into BitBltAffineScaleTransfo...
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Fri Feb 7 02:32:03 PST 2014
changeset 3ce2d9cfb859 in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=3ce2d9cfb859
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Fri Feb 07 11:36:19 2014 +0100
Five new tests added into BitBltAffineScaleTransformOp.
diffstat:
ChangeLog | 5 +
src/org/gfxtest/testsuites/BitBltAffineScaleTransformOp.java | 74 +++++++++++-
2 files changed, 77 insertions(+), 2 deletions(-)
diffs (110 lines):
diff -r 5ba50af31527 -r 3ce2d9cfb859 ChangeLog
--- a/ChangeLog Thu Feb 06 13:04:24 2014 +0100
+++ b/ChangeLog Fri Feb 07 11:36:19 2014 +0100
@@ -1,3 +1,8 @@
+2014-02-07 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/gfxtest/testsuites/BitBltAffineScaleTransformOp.java:
+ Five new tests added into BitBltAffineScaleTransformOp.
+
2014-02-06 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/gfxtest/testsuites/BitBltAffineQuadrantRotateTransformOp.java:
diff -r 5ba50af31527 -r 3ce2d9cfb859 src/org/gfxtest/testsuites/BitBltAffineScaleTransformOp.java
--- a/src/org/gfxtest/testsuites/BitBltAffineScaleTransformOp.java Thu Feb 06 13:04:24 2014 +0100
+++ b/src/org/gfxtest/testsuites/BitBltAffineScaleTransformOp.java Fri Feb 07 11:36:19 2014 +0100
@@ -1,7 +1,7 @@
/*
Java gfx-test framework
- Copyright (C) 2013 Red Hat
+ Copyright (C) 2013, 2014 Red Hat
This file is part of IcedTea.
@@ -71,7 +71,7 @@
@Zoom(1)
public class BitBltAffineScaleTransformOp extends BitBltAffineTransformOp
{
- private static double SCALES[] = {.001, 0.01, 0.1, 1/3., 0.5, 2/3., 1.0, 2.0, 3.0, 4.0};
+ private static double SCALES[] = {0.01, 0.1, 1/3., 0.5, 2/3., 1.0, 2.0, 3.0, 4.0};
private static final int NUM_SCALES = SCALES.length * SCALES.length;
private static final AffineTransform ScaleTransformation[] = new AffineTransform[NUM_SCALES];
@@ -127,6 +127,76 @@
}
/**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_3BYTE_BGR.
+ *
+ * @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 testBitBltCheckerBufferedImageType3ByteBGRScaleTransformation0Nearest2Op(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltCheckerBufferedImageType3ByteRGB(image, graphics2d, ScaleTransformationNearest2Op[0]);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_3BYTE_BGR.
+ *
+ * @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 testBitBltCheckerBufferedImageType3ByteBGRScaleTransformation0Bilinear1Op(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltCheckerBufferedImageType3ByteRGB(image, graphics2d, ScaleTransformationBilinear1Op[0]);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_3BYTE_BGR.
+ *
+ * @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 testBitBltCheckerBufferedImageType3ByteBGRScaleTransformation0Bilinear2Op(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltCheckerBufferedImageType3ByteRGB(image, graphics2d, ScaleTransformationBilinear2Op[0]);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_3BYTE_BGR.
+ *
+ * @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 testBitBltCheckerBufferedImageType3ByteBGRScaleTransformation0Bicubic1Op(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltCheckerBufferedImageType3ByteRGB(image, graphics2d, ScaleTransformationBicubic1Op[0]);
+ }
+
+ /**
+ * Test basic BitBlt operation for checker buffered image with type TYPE_3BYTE_BGR.
+ *
+ * @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 testBitBltCheckerBufferedImageType3ByteBGRScaleTransformation0Bicubic2Op(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltCheckerBufferedImageType3ByteRGB(image, graphics2d, ScaleTransformationBicubic2Op[0]);
+ }
+
+ /**
* Entry point to the test suite.
*
* @param args not used in this case
More information about the distro-pkg-dev
mailing list