/hg/gfx-test: 2011-11-10 Pavel Tisnovsky <ptisnovs at redhat.com>

ptisnovs at icedtea.classpath.org ptisnovs at icedtea.classpath.org
Thu Nov 10 07:22:36 PST 2011


changeset 2d45a6c76b6a in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=2d45a6c76b6a
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Thu Nov 10 16:24:44 2011 +0100

	2011-11-10 Pavel Tisnovsky <ptisnovs at redhat.com>

	 * Makefile: updated
		* src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java:
	Changed JavaDoc.
		* src/org/gfxtest/testsuites/ClippingCircleByEllipseShape.java:
		* src/org/gfxtest/testsuites/ClippingCircleByPolygonalShape.java:
		* src/org/gfxtest/testsuites/ClippingCircleByRectangleShape.java:
		* src/org/gfxtest/testsuites/ClippingCircleByRoundRectangleShape.java:
	Created stubs for new test suites.


diffstat:

 ChangeLog                                                           |  11 +
 Makefile                                                            |  12 +-
 src/org/gfxtest/testsuites/ClippingCircleByEllipseShape.java        |  75 ++++++++++
 src/org/gfxtest/testsuites/ClippingCircleByPolygonalShape.java      |  75 ++++++++++
 src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java       |   4 +-
 src/org/gfxtest/testsuites/ClippingCircleByRectangleShape.java      |  75 ++++++++++
 src/org/gfxtest/testsuites/ClippingCircleByRoundRectangleShape.java |  75 ++++++++++
 7 files changed, 323 insertions(+), 4 deletions(-)

diffs (377 lines):

diff -r 7bbb18623f9e -r 2d45a6c76b6a ChangeLog
--- a/ChangeLog	Wed Nov 09 10:15:54 2011 +0100
+++ b/ChangeLog	Thu Nov 10 16:24:44 2011 +0100
@@ -1,3 +1,14 @@
+2011-11-10  Pavel Tisnovsky  <ptisnovs at redhat.com>
+
+	* Makefile: updated
+	* src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java:
+	Changed JavaDoc.
+	* src/org/gfxtest/testsuites/ClippingCircleByEllipseShape.java:
+	* src/org/gfxtest/testsuites/ClippingCircleByPolygonalShape.java:
+	* src/org/gfxtest/testsuites/ClippingCircleByRectangleShape.java:
+	* src/org/gfxtest/testsuites/ClippingCircleByRoundRectangleShape.java:
+	Created stubs for new test suites.
+
 2011-11-09  Pavel Tisnovsky  <ptisnovs at redhat.com>
 
 	* Makefile: updated
diff -r 7bbb18623f9e -r 2d45a6c76b6a Makefile
--- a/Makefile	Wed Nov 09 10:15:54 2011 +0100
+++ b/Makefile	Thu Nov 10 16:24:44 2011 +0100
@@ -147,7 +147,11 @@
 	$(CLASSES)/$(TESTSUITE_DIR)/CAGOperationsOnCircleAndRectangle.class \
 	$(CLASSES)/$(TESTSUITE_DIR)/TexturePaint.class \
 	$(CLASSES)/$(TESTSUITE_DIR)/Clipping.class \
-	$(CLASSES)/$(TESTSUITE_DIR)/ClippingCircleByRectangleArea.class
+	$(CLASSES)/$(TESTSUITE_DIR)/ClippingCircleByRectangleArea.class \
+	$(CLASSES)/$(TESTSUITE_DIR)/ClippingCircleByEllipseShape.class \
+	$(CLASSES)/$(TESTSUITE_DIR)/ClippingCircleByPolygonalShape.class \
+	$(CLASSES)/$(TESTSUITE_DIR)/ClippingCircleByRectangleShape.class \
+	$(CLASSES)/$(TESTSUITE_DIR)/ClippingCircleByRoundRectangleShape.class
 
 COMPARE_RESULTS = \
 	$(RESULTS)/Areas \
@@ -197,7 +201,11 @@
 	$(RESULTS)/CAGOperationsOnCircleAndRectangle \
 	$(RESULTS)/TexturePaint \
 	$(RESULTS)/Clipping \
-	$(RESULTS)/ClippingCircleByRectangleArea
+	$(RESULTS)/ClippingCircleByRectangleArea \
+	$(RESULTS)/ClippingCircleByEllipseShape.class \
+	$(RESULTS)/ClippingCircleByPolygonalShape.class \
+	$(RESULTS)/ClippingCircleByRectangleShape.class \
+	$(RESULTS)/ClippingCircleByRoundRectangleShape.class
 
 # targets for all test suites
 TESTSUITES = $(shell ls -1 src/org/gfxtest/testsuites | sed -n -e 's/\([A-Za-z0-9]*\)\.java/\1/p')
diff -r 7bbb18623f9e -r 2d45a6c76b6a src/org/gfxtest/testsuites/ClippingCircleByEllipseShape.java
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/org/gfxtest/testsuites/ClippingCircleByEllipseShape.java	Thu Nov 10 16:24:44 2011 +0100
@@ -0,0 +1,75 @@
+/*
+  Java gfx-test framework
+
+   Copyright (C) 2010, 2011  Red Hat
+
+This file is part of IcedTea.
+
+IcedTea is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+IcedTea is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with IcedTea; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version.
+ */
+
+package org.gfxtest.testsuites;
+
+import org.gfxtest.framework.GfxTest;
+import org.gfxtest.framework.annotations.GraphicsPrimitive;
+import org.gfxtest.framework.annotations.GraphicsPrimitives;
+import org.gfxtest.framework.annotations.TestType;
+import org.gfxtest.framework.annotations.TestTypes;
+import org.gfxtest.framework.annotations.Transformation;
+import org.gfxtest.framework.annotations.Transformations;
+import org.gfxtest.framework.annotations.Zoom;
+
+/**
+ * This test check if clipping is working correctly for an empty, filled
+ * and textured circle which is clipped by an ellipse shape.
+ * 
+ * @author Pavel Tisnovsky
+ */
+ at TestType(TestTypes.RENDER_TEST)
+ at Transformation(Transformations.NONE)
+ at GraphicsPrimitive(GraphicsPrimitives.CIRCLE)
+ at Zoom(1)
+public class ClippingCircleByEllipseShape extends GfxTest
+{
+
+    /**
+     * Entry point to the test suite.
+     * 
+     * @param args
+     *            graphics test configuration
+     */
+    public static void main(String[] args)
+    {
+        new ClippingCircleByEllipseShape().runTestSuite(args);
+    }
+}
diff -r 7bbb18623f9e -r 2d45a6c76b6a src/org/gfxtest/testsuites/ClippingCircleByPolygonalShape.java
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/org/gfxtest/testsuites/ClippingCircleByPolygonalShape.java	Thu Nov 10 16:24:44 2011 +0100
@@ -0,0 +1,75 @@
+/*
+  Java gfx-test framework
+
+   Copyright (C) 2010, 2011  Red Hat
+
+This file is part of IcedTea.
+
+IcedTea is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+IcedTea is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with IcedTea; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version.
+ */
+
+package org.gfxtest.testsuites;
+
+import org.gfxtest.framework.GfxTest;
+import org.gfxtest.framework.annotations.GraphicsPrimitive;
+import org.gfxtest.framework.annotations.GraphicsPrimitives;
+import org.gfxtest.framework.annotations.TestType;
+import org.gfxtest.framework.annotations.TestTypes;
+import org.gfxtest.framework.annotations.Transformation;
+import org.gfxtest.framework.annotations.Transformations;
+import org.gfxtest.framework.annotations.Zoom;
+
+/**
+ * This test check if clipping is working correctly for an empty, filled
+ * and textured circle which is clipped by a polygonal shape.
+ * 
+ * @author Pavel Tisnovsky
+ */
+ at TestType(TestTypes.RENDER_TEST)
+ at Transformation(Transformations.NONE)
+ at GraphicsPrimitive(GraphicsPrimitives.CIRCLE)
+ at Zoom(1)
+public class ClippingCircleByPolygonalShape extends GfxTest
+{
+
+    /**
+     * Entry point to the test suite.
+     * 
+     * @param args
+     *            graphics test configuration
+     */
+    public static void main(String[] args)
+    {
+        new ClippingCircleByPolygonalShape().runTestSuite(args);
+    }
+}
diff -r 7bbb18623f9e -r 2d45a6c76b6a src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java
--- a/src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java	Wed Nov 09 10:15:54 2011 +0100
+++ b/src/org/gfxtest/testsuites/ClippingCircleByRectangleArea.java	Thu Nov 10 16:24:44 2011 +0100
@@ -59,8 +59,8 @@
 import org.gfxtest.framework.annotations.Zoom;
 
 /**
- * This test check if clipping is working correctly for various types of clips
- * and various types of rendered shapes.
+ * This test check if clipping is working correctly for an empty, filled
+ * and textured circle which is clipped by a rectangle area.
  * 
  * @author Pavel Tisnovsky
  */
diff -r 7bbb18623f9e -r 2d45a6c76b6a src/org/gfxtest/testsuites/ClippingCircleByRectangleShape.java
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/org/gfxtest/testsuites/ClippingCircleByRectangleShape.java	Thu Nov 10 16:24:44 2011 +0100
@@ -0,0 +1,75 @@
+/*
+  Java gfx-test framework
+
+   Copyright (C) 2010, 2011  Red Hat
+
+This file is part of IcedTea.
+
+IcedTea is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+IcedTea is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with IcedTea; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version.
+ */
+
+package org.gfxtest.testsuites;
+
+import org.gfxtest.framework.GfxTest;
+import org.gfxtest.framework.annotations.GraphicsPrimitive;
+import org.gfxtest.framework.annotations.GraphicsPrimitives;
+import org.gfxtest.framework.annotations.TestType;
+import org.gfxtest.framework.annotations.TestTypes;
+import org.gfxtest.framework.annotations.Transformation;
+import org.gfxtest.framework.annotations.Transformations;
+import org.gfxtest.framework.annotations.Zoom;
+
+/**
+ * This test check if clipping is working correctly for an empty, filled
+ * and textured circle which is clipped by a rectangular shape (not rectangular area!).
+ * 
+ * @author Pavel Tisnovsky
+ */
+ at TestType(TestTypes.RENDER_TEST)
+ at Transformation(Transformations.NONE)
+ at GraphicsPrimitive(GraphicsPrimitives.CIRCLE)
+ at Zoom(1)
+public class ClippingCircleByRectangleShape extends GfxTest
+{
+
+    /**
+     * Entry point to the test suite.
+     * 
+     * @param args
+     *            graphics test configuration
+     */
+    public static void main(String[] args)
+    {
+        new ClippingCircleByRectangleShape().runTestSuite(args);
+    }
+}
diff -r 7bbb18623f9e -r 2d45a6c76b6a src/org/gfxtest/testsuites/ClippingCircleByRoundRectangleShape.java
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/org/gfxtest/testsuites/ClippingCircleByRoundRectangleShape.java	Thu Nov 10 16:24:44 2011 +0100
@@ -0,0 +1,75 @@
+/*
+  Java gfx-test framework
+
+   Copyright (C) 2010, 2011  Red Hat
+
+This file is part of IcedTea.
+
+IcedTea is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+IcedTea is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with IcedTea; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from
+or based on this library.  If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so.  If you do not wish to do so, delete this
+exception statement from your version.
+ */
+
+package org.gfxtest.testsuites;
+
+import org.gfxtest.framework.GfxTest;
+import org.gfxtest.framework.annotations.GraphicsPrimitive;
+import org.gfxtest.framework.annotations.GraphicsPrimitives;
+import org.gfxtest.framework.annotations.TestType;
+import org.gfxtest.framework.annotations.TestTypes;
+import org.gfxtest.framework.annotations.Transformation;
+import org.gfxtest.framework.annotations.Transformations;
+import org.gfxtest.framework.annotations.Zoom;
+
+/**
+ * This test check if clipping is working correctly for an empty, filled
+ * and textured circle which is clipped by round rectangle shape.
+ * 
+ * @author Pavel Tisnovsky
+ */
+ at TestType(TestTypes.RENDER_TEST)
+ at Transformation(Transformations.NONE)
+ at GraphicsPrimitive(GraphicsPrimitives.CIRCLE)
+ at Zoom(1)
+public class ClippingCircleByRoundRectangleShape extends GfxTest
+{
+
+    /**
+     * Entry point to the test suite.
+     * 
+     * @param args
+     *            graphics test configuration
+     */
+    public static void main(String[] args)
+    {
+        new ClippingCircleByRoundRectangleShape().runTestSuite(args);
+    }
+}



More information about the distro-pkg-dev mailing list