/hg/gfx-test: Four new tests added into BlankImage.

ptisnovs at icedtea.classpath.org ptisnovs at icedtea.classpath.org
Wed Mar 23 10:25:05 UTC 2016


changeset 32beb2ec550b in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=32beb2ec550b
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Wed Mar 23 11:29:29 2016 +0100

	Four new tests added into BlankImage.


diffstat:

 ChangeLog                                  |   5 ++
 src/org/gfxtest/testsuites/BlankImage.java |  60 ++++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+), 0 deletions(-)

diffs (82 lines):

diff -r 38e1f8d55fde -r 32beb2ec550b ChangeLog
--- a/ChangeLog	Tue Mar 22 13:55:37 2016 +0100
+++ b/ChangeLog	Wed Mar 23 11:29:29 2016 +0100
@@ -1,3 +1,8 @@
+2016-03-23  Pavel Tisnovsky  <ptisnovs at redhat.com>
+
+	* src/org/gfxtest/testsuites/BlankImage.java:
+	Four new tests added into BlankImage.
+
 2016-03-22  Pavel Tisnovsky  <ptisnovs at redhat.com>
 
 	* src/org/gfxtest/ImageDiffer/ImageComparator.java:
diff -r 38e1f8d55fde -r 32beb2ec550b src/org/gfxtest/testsuites/BlankImage.java
--- a/src/org/gfxtest/testsuites/BlankImage.java	Tue Mar 22 13:55:37 2016 +0100
+++ b/src/org/gfxtest/testsuites/BlankImage.java	Wed Mar 23 11:29:29 2016 +0100
@@ -419,6 +419,66 @@
     }
 
     /**
+     * This test fill image with semitransparent cyan color with 0% opacity.
+     *
+     * @param image
+     *            image to which two dimensional shape is to be rendered
+     * @param graphics
+     *            graphics context for image
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testFillWithSemiTransparentCyanColor1(TestImage image, Graphics2D graphics)
+    {
+        image.fillImage(new Color(0.0f, 1.0f, 1.0f, 0.0f));
+        return TestResult.PASSED;
+    }
+
+    /**
+     * This test fill image with semitransparent cyan color with 33% opacity.
+     *
+     * @param image
+     *            image to which two dimensional shape is to be rendered
+     * @param graphics
+     *            graphics context for image
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testFillWithSemiTransparentCyanColor2(TestImage image, Graphics2D graphics)
+    {
+        image.fillImage(new Color(0.0f, 1.0f, 1.0f, 0.33f));
+        return TestResult.PASSED;
+    }
+
+    /**
+     * This test fill image with semitransparent cyan color with 66% opacity.
+     *
+     * @param image
+     *            image to which two dimensional shape is to be rendered
+     * @param graphics
+     *            graphics context for image
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testFillWithSemiTransparentCyanColor3(TestImage image, Graphics2D graphics)
+    {
+        image.fillImage(new Color(0.0f, 1.0f, 1.0f, 0.66f));
+        return TestResult.PASSED;
+    }
+
+    /**
+     * This test fill image with semitransparent cyan color with 100% opacity.
+     * 
+     * @param image
+     *            image to which two dimensional shape is to be rendered
+     * @param graphics
+     *            graphics context for image
+     * @return test result status - PASSED, FAILED or ERROR
+     */
+    public TestResult testFillWithSemiTransparentCyanColor4(TestImage image, Graphics2D graphics)
+    {
+        image.fillImage(new Color(0.0f, 1.0f, 1.0f, 1.0f));
+        return TestResult.PASSED;
+    }
+
+    /**
      * This test fill image with semitransparent black color with 0% opacity.
      *
      * @param image


More information about the distro-pkg-dev mailing list