/hg/gfx-test: Eight new tests added into CAGOperationsOnTwoTouch...
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Fri May 9 08:42:54 UTC 2014
changeset 7223ae87ebca in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=7223ae87ebca
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Fri May 09 10:43:39 2014 +0200
Eight new tests added into CAGOperationsOnTwoTouchingCircles.
diffstat:
ChangeLog | 5 +
src/org/gfxtest/testsuites/CAGOperationsOnTwoTouchingCircles.java | 220 +++++++++-
2 files changed, 211 insertions(+), 14 deletions(-)
diffs (303 lines):
diff -r f1e3b87d9d8a -r 7223ae87ebca ChangeLog
--- a/ChangeLog Wed May 07 09:43:47 2014 +0200
+++ b/ChangeLog Fri May 09 10:43:39 2014 +0200
@@ -1,3 +1,8 @@
+2014-05-09 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/gfxtest/testsuites/CAGOperationsOnTwoTouchingCircles.java:
+ Eight new tests added into CAGOperationsOnTwoTouchingCircles.
+
2014-05-07 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/gfxtest/testsuites/BitBltBufferedImageOp.java:
diff -r f1e3b87d9d8a -r 7223ae87ebca src/org/gfxtest/testsuites/CAGOperationsOnTwoTouchingCircles.java
--- a/src/org/gfxtest/testsuites/CAGOperationsOnTwoTouchingCircles.java Wed May 07 09:43:47 2014 +0200
+++ b/src/org/gfxtest/testsuites/CAGOperationsOnTwoTouchingCircles.java Fri May 09 10:43:39 2014 +0200
@@ -2482,6 +2482,98 @@
return TestResult.PASSED;
}
+ /**
+ * Checks the process of creating and rendering new geometric shape
+ * constructed from two touching circles using inverse subtract operator. The shape is rendered
+ * using texture paint (fill).
+ *
+ * @param image
+ * image to which area is to be drawn
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testInverseSubtractTextureFillUsingRGBTexture1(TestImage image, Graphics2D graphics2d)
+ {
+ // set stroke color
+ CommonRenderingStyles.setStrokeColor(graphics2d);
+ // set fill color
+ CommonRenderingStyles.setTextureFillUsingRGBTexture1(image, graphics2d);
+ // create area using inverse subtract operator
+ Area area = CommonCAGOperations.createAreaFromTwoTouchingCirclesUsingInverseSubtractOperator(image);
+ // draw the area
+ graphics2d.fill(area);
+ // test result
+ return TestResult.PASSED;
+ }
+
+ /**
+ * Checks the process of creating and rendering new geometric shape
+ * constructed from two touching circles using Intersect operator. The shape is rendered
+ * using texture paint (fill).
+ *
+ * @param image
+ * image to which area is to be drawn
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testIntersectTextureFillUsingRGBTexture1(TestImage image, Graphics2D graphics2d)
+ {
+ // set stroke color
+ CommonRenderingStyles.setStrokeColor(graphics2d);
+ // set fill color
+ CommonRenderingStyles.setTextureFillUsingRGBTexture1(image, graphics2d);
+ // create area using Intersect operator
+ Area area = CommonCAGOperations.createAreaFromTwoTouchingCirclesUsingIntersectOperator(image);
+ // draw the area
+ graphics2d.fill(area);
+ // test result
+ return TestResult.PASSED;
+ }
+
+ /**
+ * Checks the process of creating and rendering new geometric shape
+ * constructed from two touching circles using Xor operator. The shape is rendered
+ * using texture paint (fill).
+ *
+ * @param image
+ * image to which area is to be drawn
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testXorTextureFillUsingRGBTexture1(TestImage image, Graphics2D graphics2d)
+ {
+ // set stroke color
+ CommonRenderingStyles.setStrokeColor(graphics2d);
+ // set fill color
+ CommonRenderingStyles.setTextureFillUsingRGBTexture1(image, graphics2d);
+ // create area using Xor operator
+ Area area = CommonCAGOperations.createAreaFromTwoTouchingCirclesUsingXorOperator(image);
+ // draw the area
+ graphics2d.fill(area);
+ // test result
+ return TestResult.PASSED;
+ }
+
+ /**
+ * Checks the process of creating and rendering new geometric shape
+ * constructed from two touching circles using union operator. The shape is rendered
+ * using texture paint (fill).
+ *
+ * @param image
+ * image to which area is to be drawn
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testUnionTextureFillUsingRGBTexture2(TestImage image, Graphics2D graphics2d)
+ {
+ // set stroke color
+ CommonRenderingStyles.setStrokeColor(graphics2d);
+ // set fill color
+ CommonRenderingStyles.setTextureFillUsingRGBTexture2(image, graphics2d);
// create area using union operator
Area area = CommonCAGOperations.createAreaFromTwoTouchingCirclesUsingUnionOperator(image);
// draw the area
@@ -2492,6 +2584,106 @@
/**
* Checks the process of creating and rendering new geometric shape
+ * constructed from two touching circles using subtract operator. The shape is rendered
+ * using texture paint (fill).
+ *
+ * @param image
+ * image to which area is to be drawn
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testSubtractTextureFillUsingRGBTexture2(TestImage image, Graphics2D graphics2d)
+ {
+ // set stroke color
+ CommonRenderingStyles.setStrokeColor(graphics2d);
+ // set fill color
+ CommonRenderingStyles.setTextureFillUsingRGBTexture2(image, graphics2d);
+ // create area using subtract operator
+ Area area = CommonCAGOperations.createAreaFromTwoTouchingCirclesUsingSubtractOperator(image);
+ // draw the area
+ graphics2d.fill(area);
+ // test result
+ return TestResult.PASSED;
+ }
+
+ /**
+ * Checks the process of creating and rendering new geometric shape
+ * constructed from two touching circles using inverse subtract operator. The shape is rendered
+ * using texture paint (fill).
+ *
+ * @param image
+ * image to which area is to be drawn
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testInverseSubtractTextureFillUsingRGBTexture2(TestImage image, Graphics2D graphics2d)
+ {
+ // set stroke color
+ CommonRenderingStyles.setStrokeColor(graphics2d);
+ // set fill color
+ CommonRenderingStyles.setTextureFillUsingRGBTexture2(image, graphics2d);
+ // create area using inverse subtract operator
+ Area area = CommonCAGOperations.createAreaFromTwoTouchingCirclesUsingInverseSubtractOperator(image);
+ // draw the area
+ graphics2d.fill(area);
+ // test result
+ return TestResult.PASSED;
+ }
+
+ /**
+ * Checks the process of creating and rendering new geometric shape
+ * constructed from two touching circles using Intersect operator. The shape is rendered
+ * using texture paint (fill).
+ *
+ * @param image
+ * image to which area is to be drawn
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testIntersectTextureFillUsingRGBTexture2(TestImage image, Graphics2D graphics2d)
+ {
+ // set stroke color
+ CommonRenderingStyles.setStrokeColor(graphics2d);
+ // set fill color
+ CommonRenderingStyles.setTextureFillUsingRGBTexture2(image, graphics2d);
+ // create area using Intersect operator
+ Area area = CommonCAGOperations.createAreaFromTwoTouchingCirclesUsingIntersectOperator(image);
+ // draw the area
+ graphics2d.fill(area);
+ // test result
+ return TestResult.PASSED;
+ }
+
+ /**
+ * Checks the process of creating and rendering new geometric shape
+ * constructed from two touching circles using Xor operator. The shape is rendered
+ * using texture paint (fill).
+ *
+ * @param image
+ * image to which area is to be drawn
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testXorTextureFillUsingRGBTexture2(TestImage image, Graphics2D graphics2d)
+ {
+ // set stroke color
+ CommonRenderingStyles.setStrokeColor(graphics2d);
+ // set fill color
+ CommonRenderingStyles.setTextureFillUsingRGBTexture2(image, graphics2d);
+ // create area using Xor operator
+ Area area = CommonCAGOperations.createAreaFromTwoTouchingCirclesUsingXorOperator(image);
+ // draw the area
+ graphics2d.fill(area);
+ // test result
+ return TestResult.PASSED;
+ }
+
+ /**
+ * Checks the process of creating and rendering new geometric shape
* constructed from two touching circles using union operator. The shape is rendered
* using radial gradient paint (fill).
*
@@ -2517,8 +2709,8 @@
/**
* Checks the process of creating and rendering new geometric shape
- * constructed from two touching circles using inverse subtract operator. The shape
- * is rendered using radial gradient paint (fill).
+ * constructed from two touching circles using inverse subtract operator. The shape is rendered
+ * using texture paint (fill).
*
* @param image
* image to which area is to be drawn
@@ -2526,12 +2718,12 @@
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
*/
- public TestResult testInverseSubtractRadialGradientPaint(TestImage image, Graphics2D graphics2d)
+ public TestResult testInverseSubtractTextureFillUsingRGBTexture6(TestImage image, Graphics2D graphics2d)
{
// set stroke color
CommonRenderingStyles.setStrokeColor(graphics2d);
// set fill color
- CommonRenderingStyles.setRadialGradientFill(image, graphics2d);
+ CommonRenderingStyles.setTextureFillUsingRGBTexture6(image, graphics2d);
// create area using inverse subtract operator
Area area = CommonCAGOperations.createAreaFromTwoTouchingCirclesUsingInverseSubtractOperator(image);
// draw the area
@@ -2542,8 +2734,8 @@
/**
* Checks the process of creating and rendering new geometric shape
- * constructed from two touching circles using intersect operator. The shape is
- * rendered using radial gradient paint (fill).
+ * constructed from two touching circles using Intersect operator. The shape is rendered
+ * using texture paint (fill).
*
* @param image
* image to which area is to be drawn
@@ -2551,13 +2743,13 @@
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
*/
- public TestResult testIntersectRadialGradientPaint(TestImage image, Graphics2D graphics2d)
+ public TestResult testIntersectTextureFillUsingRGBTexture6(TestImage image, Graphics2D graphics2d)
{
// set stroke color
CommonRenderingStyles.setStrokeColor(graphics2d);
// set fill color
- CommonRenderingStyles.setRadialGradientFill(image, graphics2d);
- // create area using intersect operator
+ CommonRenderingStyles.setTextureFillUsingRGBTexture6(image, graphics2d);
+ // create area using Intersect operator
Area area = CommonCAGOperations.createAreaFromTwoTouchingCirclesUsingIntersectOperator(image);
// draw the area
graphics2d.fill(area);
@@ -2567,8 +2759,8 @@
/**
* Checks the process of creating and rendering new geometric shape
- * constructed from two touching circles using XOR operator. The shape is rendered
- * using radial gradient paint (fill).
+ * constructed from two touching circles using Xor operator. The shape is rendered
+ * using texture paint (fill).
*
* @param image
* image to which area is to be drawn
@@ -2576,13 +2768,13 @@
* graphics canvas
* @return test result status - PASSED, FAILED or ERROR
*/
- public TestResult testXorRadialGradientPaint(TestImage image, Graphics2D graphics2d)
+ public TestResult testXorTextureFillUsingRGBTexture6(TestImage image, Graphics2D graphics2d)
{
// set stroke color
CommonRenderingStyles.setStrokeColor(graphics2d);
// set fill color
- CommonRenderingStyles.setRadialGradientFill(image, graphics2d);
- // create area using XOR operator
+ CommonRenderingStyles.setTextureFillUsingRGBTexture6(image, graphics2d);
+ // create area using Xor operator
Area area = CommonCAGOperations.createAreaFromTwoTouchingCirclesUsingXorOperator(image);
// draw the area
graphics2d.fill(area);
More information about the distro-pkg-dev
mailing list