/hg/gfx-test: 2012-01-17 Pavel Tisnovsky <ptisnovs at redhat.com>
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Tue Jan 17 08:04:08 PST 2012
changeset f01a066ab3b3 in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=f01a066ab3b3
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Tue Jan 17 17:06:27 2012 +0100
2012-01-17 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/gfxtest/framework/annotations/Transformation.java:
Added two new transformation types: rotate and mirror.
* src/org/gfxtest/testsuites/BitBltScaleImage.java: Updated
transformation type.
* src/org/gfxtest/testsuites/BitBltCropImage.java:
* src/org/gfxtest/testsuites/BitBltMirrorImage.java:
* src/org/gfxtest/testsuites/BitBltRotateImage.java:
* src/org/gfxtest/testsuites/BitBltUsingBgColor.java: Added
new test stubs.
* Makefile: updated
diffstat:
ChangeLog | 13 ++
Makefile | 8 +
src/org/gfxtest/framework/annotations/Transformations.java | 13 ++-
src/org/gfxtest/testsuites/BitBltCropImage.java | 79 +++++++++++++
src/org/gfxtest/testsuites/BitBltMirrorImage.java | 79 +++++++++++++
src/org/gfxtest/testsuites/BitBltRotateImage.java | 79 +++++++++++++
src/org/gfxtest/testsuites/BitBltScaleImage.java | 2 +-
src/org/gfxtest/testsuites/BitBltUsingBgColor.java | 80 ++++++++++++++
8 files changed, 351 insertions(+), 2 deletions(-)
diffs (416 lines):
diff -r 9fc077318e00 -r f01a066ab3b3 ChangeLog
--- a/ChangeLog Mon Jan 16 17:51:18 2012 +0100
+++ b/ChangeLog Tue Jan 17 17:06:27 2012 +0100
@@ -1,3 +1,16 @@
+2012-01-17 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/gfxtest/framework/annotations/Transformation.java:
+ Added two new transformation types: rotate and mirror.
+ * src/org/gfxtest/testsuites/BitBltScaleImage.java:
+ Updated transformation type.
+ * src/org/gfxtest/testsuites/BitBltCropImage.java:
+ * src/org/gfxtest/testsuites/BitBltMirrorImage.java:
+ * src/org/gfxtest/testsuites/BitBltRotateImage.java:
+ * src/org/gfxtest/testsuites/BitBltUsingBgColor.java:
+ Added new test stubs.
+ * Makefile: updated
+
2012-01-16 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/gfxtest/framework/CommonBitmapOperations.java:
diff -r 9fc077318e00 -r f01a066ab3b3 Makefile
--- a/Makefile Mon Jan 16 17:51:18 2012 +0100
+++ b/Makefile Tue Jan 17 17:06:27 2012 +0100
@@ -109,7 +109,11 @@
$(CLASSES)/$(TESTSUITE_DIR)/AlphaComposite.class \
$(CLASSES)/$(TESTSUITE_DIR)/BlankImage.class \
$(CLASSES)/$(TESTSUITE_DIR)/BitBltBasicTests.class \
+ $(CLASSES)/$(TESTSUITE_DIR)/BitBltCropImage.class \
+ $(CLASSES)/$(TESTSUITE_DIR)/BitBltMirrorImage.class \
+ $(CLASSES)/$(TESTSUITE_DIR)/BitBltRotateImage.class \
$(CLASSES)/$(TESTSUITE_DIR)/BitBltScaleImage.class \
+ $(CLASSES)/$(TESTSUITE_DIR)/BitBltUsingBgColor.class \
$(CLASSES)/$(TESTSUITE_DIR)/ColorPaint.class \
$(CLASSES)/$(TESTSUITE_DIR)/NormalArcs.class \
$(CLASSES)/$(TESTSUITE_DIR)/NormalLines.class \
@@ -172,7 +176,11 @@
$(RESULTS)/AlphaComposite \
$(RESULTS)/BlankImage \
$(RESULTS)/BitBltBasicTests \
+ $(RESULTS)/BitBltCropImage \
+ $(RESULTS)/BitBltMirrorImage \
+ $(RESULTS)/BitBltRotateImage \
$(RESULTS)/BitBltScaleImage \
+ $(RESULTS)/BitBltUsingBgColor \
$(RESULTS)/ColorPaint \
$(RESULTS)/NormalArcs \
$(RESULTS)/NormalLines \
diff -r 9fc077318e00 -r f01a066ab3b3 src/org/gfxtest/framework/annotations/Transformations.java
--- a/src/org/gfxtest/framework/annotations/Transformations.java Mon Jan 16 17:51:18 2012 +0100
+++ b/src/org/gfxtest/framework/annotations/Transformations.java Tue Jan 17 17:06:27 2012 +0100
@@ -53,8 +53,19 @@
* None transformation is used (ie transformation is set to identify)
*/
NONE,
+
/**
- * Scale is used.
+ * Scale linear transformation is used.
*/
SCALE,
+
+ /**
+ * Rotation linear transformation is used.
+ */
+ ROTATION,
+
+ /**
+ * Mirror linear transformation is used.
+ */
+ MIRROR,
}
diff -r 9fc077318e00 -r f01a066ab3b3 src/org/gfxtest/testsuites/BitBltCropImage.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/org/gfxtest/testsuites/BitBltCropImage.java Tue Jan 17 17:06:27 2012 +0100
@@ -0,0 +1,79 @@
+/*
+ Java gfx-test framework
+
+ Copyright (C) 2010, 2011, 2012 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.RenderStyle;
+import org.gfxtest.framework.annotations.RenderStyles;
+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 the rendering of buffered images (so called bit block
+ * transfers or Bit Blt) created by various constructors. Such images are
+ * rendered cropped - only partial image is used for the BitBlt operation.
+ *
+ * @author Pavel Tisnovsky
+ */
+ at TestType(TestTypes.RENDER_TEST)
+ at GraphicsPrimitive(GraphicsPrimitives.COMMON_BITMAP)
+ at RenderStyle(RenderStyles.NORMAL_AA)
+ at Transformation(Transformations.NONE)
+ at Zoom(1)
+public class BitBltCropImage extends GfxTest
+{
+ /**
+ * Entry point to the test suite.
+ *
+ * @param args not used in this case
+ */
+ public static void main(String[] args)
+ {
+ new BitBltCropImage().runTestSuite(args);
+ }
+}
diff -r 9fc077318e00 -r f01a066ab3b3 src/org/gfxtest/testsuites/BitBltMirrorImage.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/org/gfxtest/testsuites/BitBltMirrorImage.java Tue Jan 17 17:06:27 2012 +0100
@@ -0,0 +1,79 @@
+/*
+ Java gfx-test framework
+
+ Copyright (C) 2010, 2011, 2012 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.RenderStyle;
+import org.gfxtest.framework.annotations.RenderStyles;
+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 the rendering of buffered images (so called bit block
+ * transfers or Bit Blt) created by various constructors. Such images are
+ * rendered using flip (mirror) linear transformation.
+ *
+ * @author Pavel Tisnovsky
+ */
+ at TestType(TestTypes.RENDER_TEST)
+ at GraphicsPrimitive(GraphicsPrimitives.COMMON_BITMAP)
+ at RenderStyle(RenderStyles.NORMAL_AA)
+ at Transformation(Transformations.MIRROR)
+ at Zoom(1)
+public class BitBltMirrorImage extends GfxTest
+{
+ /**
+ * Entry point to the test suite.
+ *
+ * @param args not used in this case
+ */
+ public static void main(String[] args)
+ {
+ new BitBltMirrorImage().runTestSuite(args);
+ }
+}
diff -r 9fc077318e00 -r f01a066ab3b3 src/org/gfxtest/testsuites/BitBltRotateImage.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/org/gfxtest/testsuites/BitBltRotateImage.java Tue Jan 17 17:06:27 2012 +0100
@@ -0,0 +1,79 @@
+/*
+ Java gfx-test framework
+
+ Copyright (C) 2010, 2011, 2012 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.RenderStyle;
+import org.gfxtest.framework.annotations.RenderStyles;
+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 the rendering of buffered images (so called bit block
+ * transfers or Bit Blt) created by various constructors. Such images are
+ * rendered using rotation linear transformation.
+ *
+ * @author Pavel Tisnovsky
+ */
+ at TestType(TestTypes.RENDER_TEST)
+ at GraphicsPrimitive(GraphicsPrimitives.COMMON_BITMAP)
+ at RenderStyle(RenderStyles.NORMAL_AA)
+ at Transformation(Transformations.ROTATION)
+ at Zoom(1)
+public class BitBltRotateImage extends GfxTest
+{
+ /**
+ * Entry point to the test suite.
+ *
+ * @param args not used in this case
+ */
+ public static void main(String[] args)
+ {
+ new BitBltRotateImage().runTestSuite(args);
+ }
+}
diff -r 9fc077318e00 -r f01a066ab3b3 src/org/gfxtest/testsuites/BitBltScaleImage.java
--- a/src/org/gfxtest/testsuites/BitBltScaleImage.java Mon Jan 16 17:51:18 2012 +0100
+++ b/src/org/gfxtest/testsuites/BitBltScaleImage.java Tue Jan 17 17:06:27 2012 +0100
@@ -71,7 +71,7 @@
@TestType(TestTypes.RENDER_TEST)
@GraphicsPrimitive(GraphicsPrimitives.COMMON_BITMAP)
@RenderStyle(RenderStyles.NORMAL_AA)
- at Transformation(Transformations.NONE)
+ at Transformation(Transformations.SCALE)
@Zoom(1)
public class BitBltScaleImage extends GfxTest
{
diff -r 9fc077318e00 -r f01a066ab3b3 src/org/gfxtest/testsuites/BitBltUsingBgColor.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/org/gfxtest/testsuites/BitBltUsingBgColor.java Tue Jan 17 17:06:27 2012 +0100
@@ -0,0 +1,80 @@
+/*
+ Java gfx-test framework
+
+ Copyright (C) 2010, 2011, 2012 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.RenderStyle;
+import org.gfxtest.framework.annotations.RenderStyles;
+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 the rendering of buffered images (so called bit block
+ * transfers or Bit Blt) created by various constructors. Such images are
+ * rendered with explicitly set background color which should affect
+ * transparent or semi-transparent images.
+ *
+ * @author Pavel Tisnovsky
+ */
+ at TestType(TestTypes.RENDER_TEST)
+ at GraphicsPrimitive(GraphicsPrimitives.COMMON_BITMAP)
+ at RenderStyle(RenderStyles.NORMAL_AA)
+ at Transformation(Transformations.NONE)
+ at Zoom(1)
+public class BitBltUsingBgColor extends GfxTest
+{
+ /**
+ * Entry point to the test suite.
+ *
+ * @param args not used in this case
+ */
+ public static void main(String[] args)
+ {
+ new BitBltUsingBgColor().runTestSuite(args);
+ }
+}
More information about the distro-pkg-dev
mailing list