/hg/gfx-test: Stubs for five new tests.
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Wed Sep 12 06:16:33 PDT 2012
changeset 30110060e730 in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=30110060e730
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Wed Sep 12 15:19:10 2012 +0200
Stubs for five new tests.
diffstat:
ChangeLog | 10 +
Makefile | 10 +
src/org/gfxtest/testsuites/PrintTestBitBltCropImage.java | 83 ++++++++++++
src/org/gfxtest/testsuites/PrintTestBitBltMirrorImage.java | 83 ++++++++++++
src/org/gfxtest/testsuites/PrintTestBitBltRotateImage.java | 83 ++++++++++++
src/org/gfxtest/testsuites/PrintTestBitBltScaleImage.java | 83 ++++++++++++
src/org/gfxtest/testsuites/PrintTestBitBltUsingBgColor.java | 84 +++++++++++++
7 files changed, 436 insertions(+), 0 deletions(-)
diffs (480 lines):
diff -r ba24a5ebfe08 -r 30110060e730 ChangeLog
--- a/ChangeLog Tue Sep 11 14:43:25 2012 +0200
+++ b/ChangeLog Wed Sep 12 15:19:10 2012 +0200
@@ -1,3 +1,13 @@
+2012-09-12 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/gfxtest/testsuites/PrintTestBitBltCropImage.java:
+ * src/org/gfxtest/testsuites/PrintTestBitBltMirrorImage.java:
+ * src/org/gfxtest/testsuites/PrintTestBitBltRotateImage.java:
+ * src/org/gfxtest/testsuites/PrintTestBitBltScaleImage.java:
+ * src/org/gfxtest/testsuites/PrintTestBitBltUsingBgColor.java:
+ Stubs for new tests.
+ * Makefile: Added new classes to compile and new tests to run.
+
2012-09-11 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/gfxtest/framework/annotations/BitBltOperation.java:
diff -r ba24a5ebfe08 -r 30110060e730 Makefile
--- a/Makefile Tue Sep 11 14:43:25 2012 +0200
+++ b/Makefile Wed Sep 12 15:19:10 2012 +0200
@@ -218,6 +218,11 @@
$(CLASSES)/$(TESTSUITE_DIR)/PrintTestQuadraticCurves.class \
$(CLASSES)/$(TESTSUITE_DIR)/PrintTestQuadraticCurvesAsPaths.class \
$(CLASSES)/$(TESTSUITE_DIR)/PrintTestBitBlt.class \
+ $(CLASSES)/$(TESTSUITE_DIR)/PrintTestBitBltCropImage.class \
+ $(CLASSES)/$(TESTSUITE_DIR)/PrintTestBitBltMirrorImage.class \
+ $(CLASSES)/$(TESTSUITE_DIR)/PrintTestBitBltRotateImage.class \
+ $(CLASSES)/$(TESTSUITE_DIR)/PrintTestBitBltScaleImage.class \
+ $(CLASSES)/$(TESTSUITE_DIR)/PrintTestBitBltUsingBgColor.class \
$(CLASSES)/$(TESTSUITE_DIR)/PrintTestCircles.class \
$(CLASSES)/$(TESTSUITE_DIR)/PrintTestEllipses.class \
$(CLASSES)/$(TESTSUITE_DIR)/PrintTestDrawText.class \
@@ -311,6 +316,11 @@
$(RESULTS)/PrintTestQuadraticCurvesAsPaths \
$(RESULTS)/PrintTestArcs \
$(RESULTS)/PrintTestBitBlt \
+ $(RESULTS)/PrintTestBitBltCropImage \
+ $(RESULTS)/PrintTestBitBltMirrorImage \
+ $(RESULTS)/PrintTestBitBltRotateImage \
+ $(RESULTS)/PrintTestBitBltScaleImage \
+ $(RESULTS)/PrintTestBitBltUsingBgColor \
$(RESULTS)/PrintTestCircles \
$(RESULTS)/PrintTestEllipses \
$(RESULTS)/PrintTestDrawText \
diff -r ba24a5ebfe08 -r 30110060e730 src/org/gfxtest/testsuites/PrintTestBitBltCropImage.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/org/gfxtest/testsuites/PrintTestBitBltCropImage.java Wed Sep 12 15:19:10 2012 +0200
@@ -0,0 +1,83 @@
+/*
+ Java gfx-test framework
+
+ Copyright (C) 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.PrintTest;
+import org.gfxtest.framework.annotations.BitBltOperation;
+import org.gfxtest.framework.annotations.BitBltOperations;
+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.
+ *
+ * @author Pavel Tisnovsky
+ */
+ at TestType(TestTypes.PRINT_TEST)
+ at GraphicsPrimitive(GraphicsPrimitives.COMMON_BITMAP)
+ at RenderStyle(RenderStyles.NORMAL)
+ at BitBltOperation(BitBltOperations.CROP)
+ at Transformation(Transformations.NONE)
+ at Zoom(1)
+public class PrintTestBitBltCropImage extends PrintTest
+{
+
+ /**
+ * Entry point to the test suite.
+ *
+ * @param args
+ * not used in this case
+ */
+ public static void main(String[] args)
+ {
+ new PrintTestBitBltCropImage().runTestSuite(args);
+ }
+}
diff -r ba24a5ebfe08 -r 30110060e730 src/org/gfxtest/testsuites/PrintTestBitBltMirrorImage.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/org/gfxtest/testsuites/PrintTestBitBltMirrorImage.java Wed Sep 12 15:19:10 2012 +0200
@@ -0,0 +1,83 @@
+/*
+ Java gfx-test framework
+
+ Copyright (C) 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.PrintTest;
+import org.gfxtest.framework.annotations.BitBltOperation;
+import org.gfxtest.framework.annotations.BitBltOperations;
+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.
+ *
+ * @author Pavel Tisnovsky
+ */
+ at TestType(TestTypes.PRINT_TEST)
+ at GraphicsPrimitive(GraphicsPrimitives.COMMON_BITMAP)
+ at RenderStyle(RenderStyles.NORMAL)
+ at BitBltOperation(BitBltOperations.MIRROR)
+ at Transformation(Transformations.NONE)
+ at Zoom(1)
+public class PrintTestBitBltMirrorImage extends PrintTest
+{
+
+ /**
+ * Entry point to the test suite.
+ *
+ * @param args
+ * not used in this case
+ */
+ public static void main(String[] args)
+ {
+ new PrintTestBitBltMirrorImage().runTestSuite(args);
+ }
+}
diff -r ba24a5ebfe08 -r 30110060e730 src/org/gfxtest/testsuites/PrintTestBitBltRotateImage.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/org/gfxtest/testsuites/PrintTestBitBltRotateImage.java Wed Sep 12 15:19:10 2012 +0200
@@ -0,0 +1,83 @@
+/*
+ Java gfx-test framework
+
+ Copyright (C) 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.PrintTest;
+import org.gfxtest.framework.annotations.BitBltOperation;
+import org.gfxtest.framework.annotations.BitBltOperations;
+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.
+ *
+ * @author Pavel Tisnovsky
+ */
+ at TestType(TestTypes.PRINT_TEST)
+ at GraphicsPrimitive(GraphicsPrimitives.COMMON_BITMAP)
+ at RenderStyle(RenderStyles.NORMAL)
+ at BitBltOperation(BitBltOperations.ROTATE)
+ at Transformation(Transformations.NONE)
+ at Zoom(1)
+public class PrintTestBitBltRotateImage extends PrintTest
+{
+
+ /**
+ * Entry point to the test suite.
+ *
+ * @param args
+ * not used in this case
+ */
+ public static void main(String[] args)
+ {
+ new PrintTestBitBltRotateImage().runTestSuite(args);
+ }
+}
diff -r ba24a5ebfe08 -r 30110060e730 src/org/gfxtest/testsuites/PrintTestBitBltScaleImage.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/org/gfxtest/testsuites/PrintTestBitBltScaleImage.java Wed Sep 12 15:19:10 2012 +0200
@@ -0,0 +1,83 @@
+/*
+ Java gfx-test framework
+
+ Copyright (C) 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.PrintTest;
+import org.gfxtest.framework.annotations.BitBltOperation;
+import org.gfxtest.framework.annotations.BitBltOperations;
+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.
+ *
+ * @author Pavel Tisnovsky
+ */
+ at TestType(TestTypes.PRINT_TEST)
+ at GraphicsPrimitive(GraphicsPrimitives.COMMON_BITMAP)
+ at RenderStyle(RenderStyles.NORMAL)
+ at BitBltOperation(BitBltOperations.SCALE)
+ at Transformation(Transformations.NONE)
+ at Zoom(1)
+public class PrintTestBitBltScaleImage extends PrintTest
+{
+
+ /**
+ * Entry point to the test suite.
+ *
+ * @param args
+ * not used in this case
+ */
+ public static void main(String[] args)
+ {
+ new PrintTestBitBltScaleImage().runTestSuite(args);
+ }
+}
diff -r ba24a5ebfe08 -r 30110060e730 src/org/gfxtest/testsuites/PrintTestBitBltUsingBgColor.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/org/gfxtest/testsuites/PrintTestBitBltUsingBgColor.java Wed Sep 12 15:19:10 2012 +0200
@@ -0,0 +1,84 @@
+/*
+ Java gfx-test framework
+
+ Copyright (C) 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.PrintTest;
+import org.gfxtest.framework.annotations.BitBltOperation;
+import org.gfxtest.framework.annotations.BitBltOperations;
+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.
+ *
+ * @author Pavel Tisnovsky
+ */
+ at TestType(TestTypes.PRINT_TEST)
+ at GraphicsPrimitive(GraphicsPrimitives.COMMON_BITMAP)
+ at RenderStyle(RenderStyles.NORMAL)
+ at BitBltOperation(BitBltOperations.BITBLT)
+ at Transformation(Transformations.NONE)
+ at Zoom(1)
+public class PrintTestBitBltUsingBgColor extends PrintTest
+{
+
+
+ /**
+ * Entry point to the test suite.
+ *
+ * @param args
+ * not used in this case
+ */
+ public static void main(String[] args)
+ {
+ new PrintTestBitBltUsingBgColor().runTestSuite(args);
+ }
+}
More information about the distro-pkg-dev
mailing list