/hg/gfx-test: Three tests added into BlankImage.

ptisnovs at icedtea.classpath.org ptisnovs at icedtea.classpath.org
Thu Mar 10 13:29:57 UTC 2016


changeset f6d20ead5a1b in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=f6d20ead5a1b
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Thu Mar 10 14:33:59 2016 +0100

	Three tests added into BlankImage.


diffstat:

 ChangeLog                                  |   5 ++
 src/org/gfxtest/testsuites/BlankImage.java |  62 +++++++++++++++++++++++++++++-
 2 files changed, 66 insertions(+), 1 deletions(-)

diffs (91 lines):

diff -r dc2b86ed8c86 -r f6d20ead5a1b ChangeLog
--- a/ChangeLog	Wed Mar 09 11:22:27 2016 +0100
+++ b/ChangeLog	Thu Mar 10 14:33:59 2016 +0100
@@ -1,3 +1,8 @@
+2016-03-10  Pavel Tisnovsky  <ptisnovs at redhat.com>
+
+	* src/org/gfxtest/testsuites/BlankImage.java:
+	Three tests added into BlankImage.
+
 2016-03-09  Pavel Tisnovsky  <ptisnovs at redhat.com>
 
 	* src/org/gfxtest/testsuites/BitBltUsingBgColorAlpha.java:
diff -r dc2b86ed8c86 -r f6d20ead5a1b src/org/gfxtest/testsuites/BlankImage.java
--- a/src/org/gfxtest/testsuites/BlankImage.java	Wed Mar 09 11:22:27 2016 +0100
+++ b/src/org/gfxtest/testsuites/BlankImage.java	Thu Mar 10 14:33:59 2016 +0100
@@ -1,7 +1,7 @@
 /*
   Java gfx-test framework
 
-   Copyright (C) 2010, 2011  Red Hat
+   Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015, 2016  Red Hat
 
 This file is part of IcedTea.
 
@@ -359,6 +359,66 @@
     }
 
     /**
+     * This test fill image with semitransparent black 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 testFillWithSemiTransparentBlackColor1(TestImage image, Graphics2D graphics)
+    {
+        image.fillImage(new Color(0.0f, 0.0f, 0.0f, 0.0f));
+        return TestResult.PASSED;
+    }
+
+    /**
+     * This test fill image with semitransparent black 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 testFillWithSemiTransparentBlackColor2(TestImage image, Graphics2D graphics)
+    {
+        image.fillImage(new Color(0.0f, 0.0f, 0.0f, 0.33f));
+        return TestResult.PASSED;
+    }
+
+    /**
+     * This test fill image with semitransparent black 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 testFillWithSemiTransparentBlackColor3(TestImage image, Graphics2D graphics)
+    {
+        image.fillImage(new Color(0.0f, 0.0f, 0.0f, 0.66f));
+        return TestResult.PASSED;
+    }
+
+    /**
+     * This test fill image with semitransparent black 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 testFillWithSemiTransparentBlackColor4(TestImage image, Graphics2D graphics)
+    {
+        image.fillImage(new Color(0.0f, 0.0f, 0.0f, 1.0f));
+        return TestResult.PASSED;
+    }
+
+    /**
      * Entry point to the test suite.
      *
      * @param args not used in this case


More information about the distro-pkg-dev mailing list