/hg/gfx-test: Six new tests added into BitBltUsingBgColor test s...
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Thu Aug 15 01:16:56 PDT 2013
changeset 4477ada87429 in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=4477ada87429
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Thu Aug 15 10:20:35 2013 +0200
Six new tests added into BitBltUsingBgColor test suite, fixed typos in
JavaDoc etc.
diffstat:
ChangeLog | 6 +
src/org/gfxtest/testsuites/BitBltUsingBgColor.java | 282 ++++++++++++++------
2 files changed, 198 insertions(+), 90 deletions(-)
diffs (truncated from 927 to 500 lines):
diff -r 0a71a945bd3a -r 4477ada87429 ChangeLog
--- a/ChangeLog Wed Aug 14 10:30:52 2013 +0200
+++ b/ChangeLog Thu Aug 15 10:20:35 2013 +0200
@@ -1,3 +1,9 @@
+2013-08-15 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/gfxtest/testsuites/BitBltUsingBgColor.java:
+ Six new tests added into BitBltUsingBgColor test suite, fixed typos in
+ JavaDoc etc.
+
2013-08-14 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/gfxtest/testsuites/BitBltBasicTests.java:
diff -r 0a71a945bd3a -r 4477ada87429 src/org/gfxtest/testsuites/BitBltUsingBgColor.java
--- a/src/org/gfxtest/testsuites/BitBltUsingBgColor.java Wed Aug 14 10:30:52 2013 +0200
+++ b/src/org/gfxtest/testsuites/BitBltUsingBgColor.java Thu Aug 15 10:20:35 2013 +0200
@@ -1085,6 +1085,108 @@
}
/**
+ * Test basic BitBlt operation for diagonal grid buffered image with type TYPE_BYTE_BINARY
+ *
+ * @param image
+ * image to be used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @param backgroundColor
+ * background color
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ private TestResult doBitBltDiagonalGridBufferedImageTypeByteBinary(TestImage image, Graphics2D graphics2d,
+ Color backgroundColor)
+ {
+ return CommonBitmapOperations.doBitBltTestWithDiagonalGridImage(image, graphics2d, BufferedImage.TYPE_BYTE_BINARY, backgroundColor);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal grid buffered image with type TYPE_BYTE_GRAY
+ *
+ * @param image
+ * image to be used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @param backgroundColor
+ * background color
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ private TestResult doBitBltDiagonalGridBufferedImageTypeByteGray(TestImage image, Graphics2D graphics2d,
+ Color backgroundColor)
+ {
+ return CommonBitmapOperations.doBitBltTestWithDiagonalGridImage(image, graphics2d, BufferedImage.TYPE_BYTE_GRAY, backgroundColor);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal grid buffered image with type TYPE_BYTE_INDEXED
+ *
+ * @param image
+ * image to be used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @param backgroundColor
+ * background color
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ private TestResult doBitBltDiagonalGridBufferedImageTypeByteIndexed(TestImage image, Graphics2D graphics2d,
+ Color backgroundColor)
+ {
+ return CommonBitmapOperations.doBitBltTestWithDiagonalGridImage(image, graphics2d, BufferedImage.TYPE_BYTE_INDEXED, backgroundColor);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal grid buffered image with type TYPE_USHORT_555_RGB
+ *
+ * @param image
+ * image to be used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @param backgroundColor
+ * background color
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ private TestResult doBitBltDiagonalGridBufferedImageTypeUshort555RGB(TestImage image, Graphics2D graphics2d,
+ Color backgroundColor)
+ {
+ return CommonBitmapOperations.doBitBltTestWithDiagonalGridImage(image, graphics2d, BufferedImage.TYPE_USHORT_555_RGB, backgroundColor);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal grid buffered image with type TYPE_USHORT_565_RGB
+ *
+ * @param image
+ * image to be used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @param backgroundColor
+ * background color
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ private TestResult doBitBltDiagonalGridBufferedImageTypeUshort565RGB(TestImage image, Graphics2D graphics2d,
+ Color backgroundColor)
+ {
+ return CommonBitmapOperations.doBitBltTestWithDiagonalGridImage(image, graphics2d, BufferedImage.TYPE_USHORT_565_RGB, backgroundColor);
+ }
+
+ /**
+ * Test basic BitBlt operation for diagonal grid buffered image with type TYPE_USHORT_GRAY
+ *
+ * @param image
+ * image to be used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @param backgroundColor
+ * background color
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ private TestResult doBitBltDiagonalGridBufferedImageTypeUshortGray(TestImage image, Graphics2D graphics2d,
+ Color backgroundColor)
+ {
+ return CommonBitmapOperations.doBitBltTestWithDiagonalGridImage(image, graphics2d, BufferedImage.TYPE_USHORT_GRAY, backgroundColor);
+ }
+
+ /**
* Test basic BitBlt operation for empty buffered image with type TYPE_3BYTE_BGR.
* Background color is set to Color.black.
*
@@ -1824,7 +1926,7 @@
* Background color is set to Color.blue.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -1839,7 +1941,7 @@
* Background color is set to Color.green.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -1854,7 +1956,7 @@
* Background color is set to Color.cyan.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -1869,7 +1971,7 @@
* Background color is set to Color.red.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -1884,7 +1986,7 @@
* Background color is set to Color.magenta.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -1899,7 +2001,7 @@
* Background color is set to Color.yellow.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -1914,7 +2016,7 @@
* Background color is set to Color.white.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -1929,7 +2031,7 @@
* Background color is set to Color.black.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -1944,7 +2046,7 @@
* Background color is set to Color.blue.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -1959,7 +2061,7 @@
* Background color is set to Color.green.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -1974,7 +2076,7 @@
* Background color is set to Color.cyan.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -1989,7 +2091,7 @@
* Background color is set to Color.red.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -2004,7 +2106,7 @@
* Background color is set to Color.magenta.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -2019,7 +2121,7 @@
* Background color is set to Color.yellow.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -2034,7 +2136,7 @@
* Background color is set to Color.white.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -2049,7 +2151,7 @@
* Background color is set to Color.black.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -2064,7 +2166,7 @@
* Background color is set to Color.blue.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -2079,7 +2181,7 @@
* Background color is set to Color.green.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -2094,7 +2196,7 @@
* Background color is set to Color.cyan.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -2109,7 +2211,7 @@
* Background color is set to Color.red.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -2124,7 +2226,7 @@
* Background color is set to Color.magenta.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -2139,7 +2241,7 @@
* Background color is set to Color.yellow.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -2154,7 +2256,7 @@
* Background color is set to Color.white.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -2169,7 +2271,7 @@
* Background color is set to Color.black.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -2184,7 +2286,7 @@
* Background color is set to Color.blue.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -2199,7 +2301,7 @@
* Background color is set to Color.green.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -2214,7 +2316,7 @@
* Background color is set to Color.cyan.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -2229,7 +2331,7 @@
* Background color is set to Color.red.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -2244,7 +2346,7 @@
* Background color is set to Color.magenta.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -2259,7 +2361,7 @@
* Background color is set to Color.yellow.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -2274,7 +2376,7 @@
* Background color is set to Color.white.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -2289,7 +2391,7 @@
* Background color is set to Color.black.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -2304,7 +2406,7 @@
* Background color is set to Color.blue.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -2319,7 +2421,7 @@
* Background color is set to Color.green.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -2334,7 +2436,7 @@
* Background color is set to Color.cyan.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -2349,7 +2451,7 @@
* Background color is set to Color.red.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -2364,7 +2466,7 @@
* Background color is set to Color.magenta.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -2379,7 +2481,7 @@
* Background color is set to Color.yellow.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -2394,7 +2496,7 @@
* Background color is set to Color.white.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -2409,7 +2511,7 @@
* Background color is set to Color.black.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -2424,7 +2526,7 @@
* Background color is set to Color.blue.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
* @param graphics2d
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
@@ -2439,7 +2541,7 @@
* Background color is set to Color.green.
*
* @param image
- * image used as a destination for BitBlt-type operations
+ * image to be used as a destination for BitBlt-type operations
More information about the distro-pkg-dev
mailing list