/hg/gfx-test: Added proper annotations to all test suites.

ptisnovs at icedtea.classpath.org ptisnovs at icedtea.classpath.org
Fri Jul 16 07:29:33 PDT 2010


changeset 1835f1b2615b in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=1835f1b2615b
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Fri Jul 16 16:29:45 2010 +0200

	Added proper annotations to all test suites.


diffstat:

9 files changed, 61 insertions(+)
src/org/gfxtest/framework/annotations/GraphicsPrimitives.java |    2 ++
src/org/gfxtest/framework/annotations/RenderStyles.java       |    1 +
src/org/gfxtest/testsuites/BlankImage.java                    |    9 +++++++++
src/org/gfxtest/testsuites/DashedLines.java                   |    4 ++++
src/org/gfxtest/testsuites/DashedPolylines.java               |    9 +++++++++
src/org/gfxtest/testsuites/DashedRectangles.java              |    9 +++++++++
src/org/gfxtest/testsuites/ScaledLines.java                   |    9 +++++++++
src/org/gfxtest/testsuites/ScaledPolylines.java               |    9 +++++++++
src/org/gfxtest/testsuites/ScaledRectangles.java              |    9 +++++++++

diffs (164 lines):

diff -r 82bf2c575f0a -r 1835f1b2615b src/org/gfxtest/framework/annotations/GraphicsPrimitives.java
--- a/src/org/gfxtest/framework/annotations/GraphicsPrimitives.java	Fri Jul 16 15:57:40 2010 +0200
+++ b/src/org/gfxtest/framework/annotations/GraphicsPrimitives.java	Fri Jul 16 16:29:45 2010 +0200
@@ -42,7 +42,9 @@ package org.gfxtest.framework.annotation
 
 public enum GraphicsPrimitives
 {
+    COMMON_BITMAP,
     LINE,
+    RECTANGLE,
     POLYLINE,
     ARC,
     CIRCLE,
diff -r 82bf2c575f0a -r 1835f1b2615b src/org/gfxtest/framework/annotations/RenderStyles.java
--- a/src/org/gfxtest/framework/annotations/RenderStyles.java	Fri Jul 16 15:57:40 2010 +0200
+++ b/src/org/gfxtest/framework/annotations/RenderStyles.java	Fri Jul 16 16:29:45 2010 +0200
@@ -42,6 +42,7 @@ package org.gfxtest.framework.annotation
 
 public enum RenderStyles
 {
+    NONE,
     NORMAL,
     DASH
 }
diff -r 82bf2c575f0a -r 1835f1b2615b src/org/gfxtest/testsuites/BlankImage.java
--- a/src/org/gfxtest/testsuites/BlankImage.java	Fri Jul 16 15:57:40 2010 +0200
+++ b/src/org/gfxtest/testsuites/BlankImage.java	Fri Jul 16 16:29:45 2010 +0200
@@ -43,7 +43,16 @@ import java.awt.*;
 import java.awt.*;
 
 import org.gfxtest.framework.*;
+import org.gfxtest.framework.annotations.*;
 
+/**
+ * This test renders bitmap filled by given color.
+ *
+ * @author Pavel Tisnovsky
+ */
+ at TestType(TestTypes.RENDER_TEST)
+ at GraphicsPrimitive(GraphicsPrimitives.COMMON_BITMAP)
+ at RenderStyle(RenderStyles.NONE)
 public class BlankImage extends GfxTest
 {
 
diff -r 82bf2c575f0a -r 1835f1b2615b src/org/gfxtest/testsuites/DashedLines.java
--- a/src/org/gfxtest/testsuites/DashedLines.java	Fri Jul 16 15:57:40 2010 +0200
+++ b/src/org/gfxtest/testsuites/DashedLines.java	Fri Jul 16 16:29:45 2010 +0200
@@ -45,12 +45,16 @@ import java.io.IOException;
 import java.io.IOException;
 
 import org.gfxtest.framework.*;
+import org.gfxtest.framework.annotations.*;
 
 /**
  * This test renders various dashed lines.
  *
  * @author Pavel Tisnovsky
  */
+ at TestType(TestTypes.RENDER_TEST)
+ at GraphicsPrimitive(GraphicsPrimitives.LINE)
+ at RenderStyle(RenderStyles.DASH)
 public class DashedLines extends GfxTest
 {
     private static final float DEFAULT_SCALE = 20.0f;
diff -r 82bf2c575f0a -r 1835f1b2615b src/org/gfxtest/testsuites/DashedPolylines.java
--- a/src/org/gfxtest/testsuites/DashedPolylines.java	Fri Jul 16 15:57:40 2010 +0200
+++ b/src/org/gfxtest/testsuites/DashedPolylines.java	Fri Jul 16 16:29:45 2010 +0200
@@ -45,7 +45,16 @@ import java.io.IOException;
 import java.io.IOException;
 
 import org.gfxtest.framework.*;
+import org.gfxtest.framework.annotations.*;
 
+/**
+ * This test renders various dashed polylines.
+ *
+ * @author Pavel Tisnovsky
+ */
+ at TestType(TestTypes.RENDER_TEST)
+ at GraphicsPrimitive(GraphicsPrimitives.POLYLINE)
+ at RenderStyle(RenderStyles.DASH)
 public class DashedPolylines extends GfxTest
 {
     private static final int OFFSET = 80;
diff -r 82bf2c575f0a -r 1835f1b2615b src/org/gfxtest/testsuites/DashedRectangles.java
--- a/src/org/gfxtest/testsuites/DashedRectangles.java	Fri Jul 16 15:57:40 2010 +0200
+++ b/src/org/gfxtest/testsuites/DashedRectangles.java	Fri Jul 16 16:29:45 2010 +0200
@@ -45,7 +45,16 @@ import java.io.IOException;
 import java.io.IOException;
 
 import org.gfxtest.framework.*;
+import org.gfxtest.framework.annotations.*;
 
+/**
+ * This test renders various dashed rectangles.
+ *
+ * @author Pavel Tisnovsky
+ */
+ at TestType(TestTypes.RENDER_TEST)
+ at GraphicsPrimitive(GraphicsPrimitives.RECTANGLE)
+ at RenderStyle(RenderStyles.DASH)
 public class DashedRectangles extends GfxTest
 {
     private static final float DEFAULT_SCALE = 20.0f;
diff -r 82bf2c575f0a -r 1835f1b2615b src/org/gfxtest/testsuites/ScaledLines.java
--- a/src/org/gfxtest/testsuites/ScaledLines.java	Fri Jul 16 15:57:40 2010 +0200
+++ b/src/org/gfxtest/testsuites/ScaledLines.java	Fri Jul 16 16:29:45 2010 +0200
@@ -45,7 +45,16 @@ import java.io.IOException;
 import java.io.IOException;
 
 import org.gfxtest.framework.*;
+import org.gfxtest.framework.annotations.*;
 
+/**
+ * This test renders various scaled lines.
+ *
+ * @author Pavel Tisnovsky
+ */
+ at TestType(TestTypes.RENDER_TEST)
+ at GraphicsPrimitive(GraphicsPrimitives.LINE)
+ at RenderStyle(RenderStyles.NORMAL)
 public class ScaledLines extends GfxTest
 {
     private static final int OFFSET = 80;
diff -r 82bf2c575f0a -r 1835f1b2615b src/org/gfxtest/testsuites/ScaledPolylines.java
--- a/src/org/gfxtest/testsuites/ScaledPolylines.java	Fri Jul 16 15:57:40 2010 +0200
+++ b/src/org/gfxtest/testsuites/ScaledPolylines.java	Fri Jul 16 16:29:45 2010 +0200
@@ -45,7 +45,16 @@ import java.io.IOException;
 import java.io.IOException;
 
 import org.gfxtest.framework.*;
+import org.gfxtest.framework.annotations.*;
 
+/**
+ * This test renders various scaled polylines.
+ *
+ * @author Pavel Tisnovsky
+ */
+ at TestType(TestTypes.RENDER_TEST)
+ at GraphicsPrimitive(GraphicsPrimitives.POLYLINE)
+ at RenderStyle(RenderStyles.NORMAL)
 public class ScaledPolylines extends GfxTest
 {
     private static final int OFFSET = 80;
diff -r 82bf2c575f0a -r 1835f1b2615b src/org/gfxtest/testsuites/ScaledRectangles.java
--- a/src/org/gfxtest/testsuites/ScaledRectangles.java	Fri Jul 16 15:57:40 2010 +0200
+++ b/src/org/gfxtest/testsuites/ScaledRectangles.java	Fri Jul 16 16:29:45 2010 +0200
@@ -45,7 +45,16 @@ import java.io.IOException;
 import java.io.IOException;
 
 import org.gfxtest.framework.*;
+import org.gfxtest.framework.annotations.*;
 
+/**
+ * This test renders scaled rectangles.
+ *
+ * @author Pavel Tisnovsky
+ */
+ at TestType(TestTypes.RENDER_TEST)
+ at GraphicsPrimitive(GraphicsPrimitives.RECTANGLE)
+ at RenderStyle(RenderStyles.NORMAL)
 public class ScaledRectangles extends GfxTest
 {
     private static final int OFFSET = 80;



More information about the distro-pkg-dev mailing list