/hg/gfx-test: Ten new tests added to the test suite src/org/gfxt...
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Thu Oct 18 01:34:28 PDT 2012
changeset 43a3d3f76330 in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=43a3d3f76330
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Thu Oct 18 10:37:07 2012 +0200
Ten new tests added to the test suite src/org/gfxtest/testsuites/BitBltScaleImage.java.
diffstat:
ChangeLog | 5 +
src/org/gfxtest/testsuites/BitBltScaleImage.java | 204 +++++++++++++++++++++++
2 files changed, 209 insertions(+), 0 deletions(-)
diffs (226 lines):
diff -r 4b537533c9fe -r 43a3d3f76330 ChangeLog
--- a/ChangeLog Tue Oct 16 15:08:28 2012 +0200
+++ b/ChangeLog Thu Oct 18 10:37:07 2012 +0200
@@ -1,3 +1,8 @@
+2012-10-18 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/gfxtest/testsuites/BitBltScaleImage.java:
+ Ten new tests added to this test suite.
+
2012-10-16 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/gfxtest/testsuites/BitBltBasicTests.java:
diff -r 4b537533c9fe -r 43a3d3f76330 src/org/gfxtest/testsuites/BitBltScaleImage.java
--- a/src/org/gfxtest/testsuites/BitBltScaleImage.java Tue Oct 16 15:08:28 2012 +0200
+++ b/src/org/gfxtest/testsuites/BitBltScaleImage.java Thu Oct 18 10:37:07 2012 +0200
@@ -419,6 +419,210 @@
}
/**
+ * Test basic BitBlt operation for diagonal checker buffered image with type TYPE_3BYTE_BGR.
+ * The image is scaled to a double size in both dimensions.
+ *
+ * @param image
+ * image to which line is to be drawn
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testBitBltDiagonalCheckerBufferedImageType3ByteBGRScaleTwoTimes(TestImage image, Graphics2D graphics2d)
+ {
+ return CommonBitmapOperations.doBitBltTestWithDiagonalCheckerImage(image, graphics2d, BufferedImage.TYPE_3BYTE_BGR,
+ CommonBitmapOperations.DEFAULT_TEST_IMAGE_WIDTH * 2,
+ CommonBitmapOperations.DEFAULT_TEST_IMAGE_HEIGHT * 2);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal checker buffered image with type TYPE_3BYTE_BGR.
+ * The image is scaled to one half size in both dimensions.
+ *
+ * @param image
+ * image to which line is to be drawn
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testBitBltDiagonalCheckerBufferedImageType3ByteBGRScaleOneHalf(TestImage image, Graphics2D graphics2d)
+ {
+ return CommonBitmapOperations.doBitBltTestWithDiagonalCheckerImage(image, graphics2d, BufferedImage.TYPE_3BYTE_BGR,
+ CommonBitmapOperations.DEFAULT_TEST_IMAGE_WIDTH / 2,
+ CommonBitmapOperations.DEFAULT_TEST_IMAGE_HEIGHT / 2);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal checker buffered image with type TYPE_3BYTE_BGR.
+ * The image is scaled to one third size in both dimensions.
+ *
+ * @param image
+ * image to which line is to be drawn
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testBitBltDiagonalCheckerBufferedImageType3ByteBGRScaleOneThird(TestImage image, Graphics2D graphics2d)
+ {
+ return CommonBitmapOperations.doBitBltTestWithDiagonalCheckerImage(image, graphics2d, BufferedImage.TYPE_3BYTE_BGR,
+ CommonBitmapOperations.DEFAULT_TEST_IMAGE_WIDTH / 3,
+ CommonBitmapOperations.DEFAULT_TEST_IMAGE_HEIGHT / 3);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal checker buffered image with type TYPE_3BYTE_BGR.
+ * The image is scaled to two thirds size in both dimensions.
+ *
+ * @param image
+ * image to which line is to be drawn
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testBitBltDiagonalCheckerBufferedImageType3ByteBGRScaleTwoThirds(TestImage image, Graphics2D graphics2d)
+ {
+ return CommonBitmapOperations.doBitBltTestWithDiagonalCheckerImage(image, graphics2d, BufferedImage.TYPE_3BYTE_BGR,
+ CommonBitmapOperations.DEFAULT_TEST_IMAGE_WIDTH * 2 / 3,
+ CommonBitmapOperations.DEFAULT_TEST_IMAGE_HEIGHT *2 / 3);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal checker buffered image with type TYPE_3BYTE_BGR.
+ * The image is scaled to a double size in horizontal dimension.
+ *
+ * @param image
+ * image to which line is to be drawn
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testBitBltDiagonalCheckerBufferedImageType3ByteBGRHScaleTwoTimes(TestImage image, Graphics2D graphics2d)
+ {
+ return CommonBitmapOperations.doBitBltTestWithDiagonalCheckerImage(image, graphics2d, BufferedImage.TYPE_3BYTE_BGR,
+ CommonBitmapOperations.DEFAULT_TEST_IMAGE_WIDTH * 2,
+ CommonBitmapOperations.DEFAULT_TEST_IMAGE_HEIGHT);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal checker buffered image with type TYPE_3BYTE_BGR.
+ * The image is scaled to one half size in horizontal dimension.
+ *
+ * @param image
+ * image to which line is to be drawn
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testBitBltDiagonalCheckerBufferedImageType3ByteBGRHScaleOneHalf(TestImage image, Graphics2D graphics2d)
+ {
+ return CommonBitmapOperations.doBitBltTestWithDiagonalCheckerImage(image, graphics2d, BufferedImage.TYPE_3BYTE_BGR,
+ CommonBitmapOperations.DEFAULT_TEST_IMAGE_WIDTH / 2,
+ CommonBitmapOperations.DEFAULT_TEST_IMAGE_HEIGHT);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal checker buffered image with type TYPE_3BYTE_BGR.
+ * The image is scaled to one third size in horizontal dimension.
+ *
+ * @param image
+ * image to which line is to be drawn
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testBitBltDiagonalCheckerBufferedImageType3ByteBGRHScaleOneThird(TestImage image, Graphics2D graphics2d)
+ {
+ return CommonBitmapOperations.doBitBltTestWithDiagonalCheckerImage(image, graphics2d, BufferedImage.TYPE_3BYTE_BGR,
+ CommonBitmapOperations.DEFAULT_TEST_IMAGE_WIDTH / 3,
+ CommonBitmapOperations.DEFAULT_TEST_IMAGE_HEIGHT);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal checker buffered image with type TYPE_3BYTE_BGR.
+ * The image is scaled to two thirds size in horizontal dimension.
+ *
+ * @param image
+ * image to which line is to be drawn
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testBitBltDiagonalCheckerBufferedImageType3ByteBGRHScaleTwoThirds(TestImage image, Graphics2D graphics2d)
+ {
+ return CommonBitmapOperations.doBitBltTestWithDiagonalCheckerImage(image, graphics2d, BufferedImage.TYPE_3BYTE_BGR,
+ CommonBitmapOperations.DEFAULT_TEST_IMAGE_WIDTH * 2 / 3,
+ CommonBitmapOperations.DEFAULT_TEST_IMAGE_HEIGHT);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal checker buffered image with type TYPE_3BYTE_BGR.
+ * The image is scaled to a double size in vertical dimension.
+ *
+ * @param image
+ * image to which line is to be drawn
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testBitBltDiagonalCheckerBufferedImageType3ByteBGRVScaleTwoTimes(TestImage image, Graphics2D graphics2d)
+ {
+ return CommonBitmapOperations.doBitBltTestWithDiagonalCheckerImage(image, graphics2d, BufferedImage.TYPE_3BYTE_BGR,
+ CommonBitmapOperations.DEFAULT_TEST_IMAGE_WIDTH,
+ CommonBitmapOperations.DEFAULT_TEST_IMAGE_HEIGHT * 2);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal checker buffered image with type TYPE_3BYTE_BGR.
+ * The image is scaled to one half size in vertical dimension.
+ *
+ * @param image
+ * image to which line is to be drawn
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testBitBltDiagonalCheckerBufferedImageType3ByteBGRVScaleOneHalf(TestImage image, Graphics2D graphics2d)
+ {
+ return CommonBitmapOperations.doBitBltTestWithDiagonalCheckerImage(image, graphics2d, BufferedImage.TYPE_3BYTE_BGR,
+ CommonBitmapOperations.DEFAULT_TEST_IMAGE_WIDTH,
+ CommonBitmapOperations.DEFAULT_TEST_IMAGE_HEIGHT / 2);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal checker buffered image with type TYPE_3BYTE_BGR.
+ * The image is scaled to one third size in vertical dimension.
+ *
+ * @param image
+ * image to which line is to be drawn
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testBitBltDiagonalCheckerBufferedImageType3ByteBGRVScaleOneThird(TestImage image, Graphics2D graphics2d)
+ {
+ return CommonBitmapOperations.doBitBltTestWithDiagonalCheckerImage(image, graphics2d, BufferedImage.TYPE_3BYTE_BGR,
+ CommonBitmapOperations.DEFAULT_TEST_IMAGE_WIDTH,
+ CommonBitmapOperations.DEFAULT_TEST_IMAGE_HEIGHT / 3);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal checker buffered image with type TYPE_3BYTE_BGR.
+ * The image is scaled to two thirds size in vertical dimension.
+ *
+ * @param image
+ * image to which line is to be drawn
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testBitBltDiagonalCheckerBufferedImageType3ByteBGRVScaleTwoThirds(TestImage image, Graphics2D graphics2d)
+ {
+ return CommonBitmapOperations.doBitBltTestWithDiagonalCheckerImage(image, graphics2d, BufferedImage.TYPE_3BYTE_BGR,
+ CommonBitmapOperations.DEFAULT_TEST_IMAGE_WIDTH,
+ CommonBitmapOperations.DEFAULT_TEST_IMAGE_HEIGHT *2 / 3);
+ }
+
+ /**
* Test basic BitBlt operation for diagonal checker buffered image with type TYPE_BYTE_BINARY.
* The image is scaled to a double size in both dimensions.
*
More information about the distro-pkg-dev
mailing list