/hg/gfx-test: Added eight new tests to the test suite BitBltBasi...
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Wed Jan 16 04:45:14 PST 2013
changeset 8ecb9bbea821 in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=8ecb9bbea821
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Wed Jan 16 13:48:21 2013 +0100
Added eight new tests to the test suite BitBltBasicTests.java.
diffstat:
ChangeLog | 5 +
src/org/gfxtest/testsuites/BitBltBasicTests.java | 128 +++++++++++++++++++++++
2 files changed, 133 insertions(+), 0 deletions(-)
diffs (150 lines):
diff -r 5fa3a63c40a8 -r 8ecb9bbea821 ChangeLog
--- a/ChangeLog Tue Jan 15 11:58:47 2013 +0100
+++ b/ChangeLog Wed Jan 16 13:48:21 2013 +0100
@@ -1,3 +1,8 @@
+2013-01-16 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/gfxtest/testsuites/BitBltBasicTests.java:
+ Added eight new tests to this test suite.
+
2013-01-15 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/gfxtest/common/Configuration.java:
diff -r 5fa3a63c40a8 -r 8ecb9bbea821 src/org/gfxtest/testsuites/BitBltBasicTests.java
--- a/src/org/gfxtest/testsuites/BitBltBasicTests.java Tue Jan 15 11:58:47 2013 +0100
+++ b/src/org/gfxtest/testsuites/BitBltBasicTests.java Wed Jan 16 13:48:21 2013 +0100
@@ -2428,6 +2428,134 @@
}
/**
+ * Test basic BitBlt operation for horizontal grayscale gradient buffered image
+ * with type TYPE_BYTE_BINARY.
+ *
+ * @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 testBitBltHorizontalGrayscaleGradientImageTypeByteBinary(TestImage image, Graphics2D graphics2d)
+ {
+ // create new buffered image and then perform basic BitBlt test.
+ return CommonBitmapOperations.doBitBltTestWithHorizontalGrayscaleGradientImage(image, graphics2d, BufferedImage.TYPE_BYTE_BINARY);
+ }
+
+ /**
+ * Test basic BitBlt operation for vertical grayscale gradient buffered image
+ * with type TYPE_BYTE_BINARY.
+ *
+ * @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 testBitBltVerticalGrayscaleGradientImageTypeByteBinary(TestImage image, Graphics2D graphics2d)
+ {
+ // create new buffered image and then perform basic BitBlt test.
+ return CommonBitmapOperations.doBitBltTestWithVerticalGrayscaleGradientImage(image, graphics2d, BufferedImage.TYPE_BYTE_BINARY);
+ }
+
+ /**
+ * Test basic BitBlt operation for horizontal red gradient buffered image
+ * with type TYPE_BYTE_BINARY.
+ *
+ * @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 testBitBltHorizontalRedGradientImageTypeByteBinary(TestImage image, Graphics2D graphics2d)
+ {
+ // create new buffered image and then perform basic BitBlt test.
+ return CommonBitmapOperations.doBitBltTestWithHorizontalRedGradientImage(image, graphics2d, BufferedImage.TYPE_BYTE_BINARY);
+ }
+
+ /**
+ * Test basic BitBlt operation for vertical red gradient buffered image
+ * with type TYPE_BYTE_BINARY.
+ *
+ * @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 testBitBltVerticalRedGradientImageTypeByteBinary(TestImage image, Graphics2D graphics2d)
+ {
+ // create new buffered image and then perform basic BitBlt test.
+ return CommonBitmapOperations.doBitBltTestWithVerticalRedGradientImage(image, graphics2d, BufferedImage.TYPE_BYTE_BINARY);
+ }
+
+ /**
+ * Test basic BitBlt operation for horizontal green gradient buffered image
+ * with type TYPE_BYTE_BINARY.
+ *
+ * @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 testBitBltHorizontalGreenGradientImageTypeByteBinary(TestImage image, Graphics2D graphics2d)
+ {
+ // create new buffered image and then perform basic BitBlt test.
+ return CommonBitmapOperations.doBitBltTestWithHorizontalGreenGradientImage(image, graphics2d, BufferedImage.TYPE_BYTE_BINARY);
+ }
+
+ /**
+ * Test basic BitBlt operation for vertical green gradient buffered image
+ * with type TYPE_BYTE_BINARY.
+ *
+ * @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 testBitBltVerticalGreenGradientImageTypeByteBinary(TestImage image, Graphics2D graphics2d)
+ {
+ // create new buffered image and then perform basic BitBlt test.
+ return CommonBitmapOperations.doBitBltTestWithVerticalGreenGradientImage(image, graphics2d, BufferedImage.TYPE_BYTE_BINARY);
+ }
+
+ /**
+ * Test basic BitBlt operation for horizontal blue gradient buffered image
+ * with type TYPE_BYTE_BINARY.
+ *
+ * @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 testBitBltHorizontalBlueGradientImageTypeByteBinary(TestImage image, Graphics2D graphics2d)
+ {
+ // create new buffered image and then perform basic BitBlt test.
+ return CommonBitmapOperations.doBitBltTestWithHorizontalBlueGradientImage(image, graphics2d, BufferedImage.TYPE_BYTE_BINARY);
+ }
+
+ /**
+ * Test basic BitBlt operation for vertical blue gradient buffered image
+ * with type TYPE_BYTE_BINARY.
+ *
+ * @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 testBitBltVerticalBlueGradientImageTypeByteBinary(TestImage image, Graphics2D graphics2d)
+ {
+ // create new buffered image and then perform basic BitBlt test.
+ return CommonBitmapOperations.doBitBltTestWithVerticalBlueGradientImage(image, graphics2d, BufferedImage.TYPE_BYTE_BINARY);
+ }
+
+ /**
* Entry point to the test suite.
*
* @param args not used in this case
More information about the distro-pkg-dev
mailing list