/hg/gfx-test: Added new tests into src/org/gfxtest/testsuites/Pa...

ptisnovs at icedtea.classpath.org ptisnovs at icedtea.classpath.org
Tue Dec 18 00:47:54 PST 2012


changeset 33c1e093e894 in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=33c1e093e894
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Tue Dec 18 09:50:58 2012 +0100

	Added new tests into src/org/gfxtest/testsuites/Paths.java.


diffstat:

 ChangeLog                             |    5 +
 src/org/gfxtest/testsuites/Paths.java |  286 ++++++++++++++++++++++++++++++++++
 2 files changed, 291 insertions(+), 0 deletions(-)

diffs (308 lines):

diff -r 374fe54a78bf -r 33c1e093e894 ChangeLog
--- a/ChangeLog	Mon Dec 17 09:47:21 2012 +0100
+++ b/ChangeLog	Tue Dec 18 09:50:58 2012 +0100
@@ -1,3 +1,8 @@
+2012-12-18  Pavel Tisnovsky  <ptisnovs at redhat.com>
+
+	* src/org/gfxtest/testsuites/Paths.java:
+	Added new tests.
+
 2012-12-17  Pavel Tisnovsky  <ptisnovs at redhat.com>
 
 	* src/org/gfxtest/testsuites/BitBltBasicTests.java:
diff -r 374fe54a78bf -r 33c1e093e894 src/org/gfxtest/testsuites/Paths.java
--- a/src/org/gfxtest/testsuites/Paths.java	Mon Dec 17 09:47:21 2012 +0100
+++ b/src/org/gfxtest/testsuites/Paths.java	Tue Dec 18 09:50:58 2012 +0100
@@ -478,6 +478,292 @@
     }
 
     /**
+     * Path is rendered using stroke paint with default stroke width.
+     * 
+     * @param image
+     *            work image
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testCrossedPathFloatContainingQuadraticSegmentStrokePaint(TestImage image, Graphics2D graphics2d)
+    {
+        // draw the path
+        drawCrossedPathFloatContainingQuadraticSegment(image, graphics2d);
+        // test result
+        return TestResult.PASSED;
+    }
+
+    /**
+     * Path is rendered using stroke paint with default stroke width.
+     * 
+     * @param image
+     *            work image
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testCrossedPathDoubleContainingQuadraticSegmentStrokePaint(TestImage image, Graphics2D graphics2d)
+    {
+        // draw the path
+        drawCrossedPathDoubleContainingQuadraticSegment(image, graphics2d);
+        // test result
+        return TestResult.PASSED;
+    }
+
+    /**
+     * Path is rendered using stroke paint with default stroke width.
+     * 
+     * @param image
+     *            work image
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testCrossedPathFloatContainingCubicSegmentStrokePaint(TestImage image, Graphics2D graphics2d)
+    {
+        // draw the path
+        drawCrossedPathFloatContainingCubicSegment(image, graphics2d);
+        // test result
+        return TestResult.PASSED;
+    }
+
+    /**
+     * Path is rendered using stroke paint with default stroke width.
+     * 
+     * @param image
+     *            work image
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testCrossedPathDoubleContainingCubicSegmentStrokePaint(TestImage image, Graphics2D graphics2d)
+    {
+        // draw the path
+        drawCrossedPathDoubleContainingCubicSegment(image, graphics2d);
+        // test result
+        return TestResult.PASSED;
+    }
+
+    /**
+     * Check if line path could be clipped by an ellipse shape. Path is
+     * rendered using stroke paint with zero stroke width.
+     * Line path is constructed using new Path.Float()
+     * 
+     * @param image
+     *            work image
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testLinePathFloatZeroStrokePaint(TestImage image, Graphics2D graphics2d)
+    {
+        // set stroke color
+        CommonRenderingStyles.setStrokeColor(graphics2d);
+        // set stroke width
+        CommonRenderingStyles.setStrokeZeroThick(graphics2d);
+        // draw the path
+        drawLinePathFloat(image, graphics2d);
+        // test result
+        return TestResult.PASSED;
+    }
+
+    /**
+     * Check if line path could be clipped by an ellipse shape. Path is
+     * rendered using stroke paint with zero stroke width.
+     * Line path is constructed using new Path.Double()
+     * 
+     * @param image
+     *            work image
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testLinePathDoubleZeroStrokePaint(TestImage image, Graphics2D graphics2d)
+    {
+        // set stroke color
+        CommonRenderingStyles.setStrokeColor(graphics2d);
+        // set stroke width
+        CommonRenderingStyles.setStrokeZeroThick(graphics2d);
+        // draw the path
+        drawLinePathDouble(image, graphics2d);
+        // test result
+        return TestResult.PASSED;
+    }
+
+    /**
+     * Path is rendered using stroke paint with zero stroke width.
+     * 
+     * @param image
+     *            work image
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testQuadraticPathFloatZeroStrokePaint(TestImage image, Graphics2D graphics2d)
+    {
+        // set stroke color
+        CommonRenderingStyles.setStrokeColor(graphics2d);
+        // set stroke width
+        CommonRenderingStyles.setStrokeZeroThick(graphics2d);
+        // draw the path
+        drawQuadraticPathFloat(image, graphics2d);
+        // test result
+        return TestResult.PASSED;
+    }
+
+    /**
+     * Path is rendered using stroke paint with zero stroke width.
+     * 
+     * @param image
+     *            work image
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testQuadraticPathDoubleZeroStrokePaint(TestImage image, Graphics2D graphics2d)
+    {
+        // set stroke color
+        CommonRenderingStyles.setStrokeColor(graphics2d);
+        // set stroke width
+        CommonRenderingStyles.setStrokeZeroThick(graphics2d);
+        // draw the path
+        drawQuadraticPathDouble(image, graphics2d);
+        // test result
+        return TestResult.PASSED;
+    }
+
+    /**
+     * Path is rendered using stroke paint with zero stroke width.
+     * 
+     * @param image
+     *            work image
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testCubicPathFloatZeroStrokePaint(TestImage image, Graphics2D graphics2d)
+    {
+        // set stroke color
+        CommonRenderingStyles.setStrokeColor(graphics2d);
+        // set stroke width
+        CommonRenderingStyles.setStrokeZeroThick(graphics2d);
+        // draw the path
+        drawCubicPathFloat(image, graphics2d);
+        // test result
+        return TestResult.PASSED;
+    }
+
+    /**
+     * Path is rendered using stroke paint with zero stroke width.
+     * 
+     * @param image
+     *            work image
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testCubicPathDoubleZeroStrokePaint(TestImage image, Graphics2D graphics2d)
+    {
+        // set stroke color
+        CommonRenderingStyles.setStrokeColor(graphics2d);
+        // set stroke width
+        CommonRenderingStyles.setStrokeZeroThick(graphics2d);
+        // draw the path
+        drawCubicPathDouble(image, graphics2d);
+        // test result
+        return TestResult.PASSED;
+    }
+
+    /**
+     * Check if closed path could be clipped by an ellipse shape. Path is
+     * rendered using stroke paint with zero stroke width.
+     * 
+     * @param image
+     *            work image
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testClosedPathFloatZeroStrokePaint(TestImage image, Graphics2D graphics2d)
+    {
+        // set stroke color
+        CommonRenderingStyles.setStrokeColor(graphics2d);
+        // set stroke width
+        CommonRenderingStyles.setStrokeZeroThick(graphics2d);
+        // draw the path
+        drawClosedPathFloat(image, graphics2d);
+        // test result
+        return TestResult.PASSED;
+    }
+
+    /**
+     * Check if closed path could be clipped by an ellipse shape. Path is
+     * rendered using stroke paint with zero stroke width.
+     * 
+     * @param image
+     *            work image
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testClosedPathDoubleZeroStrokePaint(TestImage image, Graphics2D graphics2d)
+    {
+        // set stroke color
+        CommonRenderingStyles.setStrokeColor(graphics2d);
+        // set stroke width
+        CommonRenderingStyles.setStrokeZeroThick(graphics2d);
+        // draw the path
+        drawClosedPathDouble(image, graphics2d);
+        // test result
+        return TestResult.PASSED;
+    }
+
+    /**
+     * Check if crossed closed path could be clipped by an ellipse shape. Path is
+     * rendered using stroke paint with zero stroke width.
+     * 
+     * @param image
+     *            work image
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testCrossedClosedPathFloatZeroStrokePaint(TestImage image, Graphics2D graphics2d)
+    {
+        // set stroke color
+        CommonRenderingStyles.setStrokeColor(graphics2d);
+        // set stroke width
+        CommonRenderingStyles.setStrokeZeroThick(graphics2d);
+        // draw the path
+        drawCrossedPathFloat(image, graphics2d);
+        // test result
+        return TestResult.PASSED;
+    }
+
+    /**
+     * Check if crossed closed path could be clipped by an ellipse shape. Path is
+     * rendered using stroke paint with zero stroke width.
+     * 
+     * @param image
+     *            work image
+     * @param graphics2d
+     *            graphics canvas
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testCrossedClosedPathDoubleZeroStrokePaint(TestImage image, Graphics2D graphics2d)
+    {
+        // set stroke color
+        CommonRenderingStyles.setStrokeColor(graphics2d);
+        // set stroke width
+        CommonRenderingStyles.setStrokeZeroThick(graphics2d);
+        // draw the path
+        drawCrossedPathDouble(image, graphics2d);
+        // test result
+        return TestResult.PASSED;
+    }
+
+    /**
      * Entry point to the test suite.
      * 
      * @param args



More information about the distro-pkg-dev mailing list