/hg/gfx-test: Added new test suite - drawing of normal cubic cur...
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Wed Jul 27 06:39:17 PDT 2011
changeset e2ffa5184756 in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=e2ffa5184756
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Wed Jul 27 15:38:53 2011 +0200
Added new test suite - drawing of normal cubic curves.
diffstat:
ChangeLog | 6 ++++++
Makefile | 2 ++
src/org/gfxtest/framework/annotations/GraphicsPrimitives.java | 5 +++++
src/org/gfxtest/testsuites/NormalQuadraticCurves.java | 4 ++--
src/org/gfxtest/testsuites/NormalQuadraticCurvesAsPaths.java | 4 ++--
5 files changed, 17 insertions(+), 4 deletions(-)
diffs (94 lines):
diff -r a9d264b14ae5 -r e2ffa5184756 ChangeLog
--- a/ChangeLog Tue Jul 26 15:52:18 2011 +0200
+++ b/ChangeLog Wed Jul 27 15:38:53 2011 +0200
@@ -1,3 +1,8 @@
+2011-07-27 Pavel Tisnovsky <ptisnovs at redhat.com>
+ * Makefile: added new class to compile & run: NormalCubicCurves.java
+ * src/org/gfxtest/testsuites/NormalCubicCurves.java: cretaded
+ Added new test suite - drawing of normal cubic curves.
+
2011-07-26 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/gfxtest/testsuites/NormalQuadraticCurve.java: renamed
* src/org/gfxtest/testsuites/NormalQuadraticCurves.java: renamed
@@ -5,6 +10,7 @@
Added new test suite - drawing of normal quadratic curves using Path2D.
2011-07-26 Pavel Tisnovsky <ptisnovs at redhat.com>
+ * Makefile: added new class to compile & run: NormalQuadraticCurve.java
* src/org/gfxtest/testsuites/NormalQuadraticCurve.java: created
Added new test suite - drawing of normal quadratic curves.
diff -r a9d264b14ae5 -r e2ffa5184756 Makefile
--- a/Makefile Tue Jul 26 15:52:18 2011 +0200
+++ b/Makefile Wed Jul 27 15:38:53 2011 +0200
@@ -106,6 +106,7 @@
$(CLASSES)/$(TESTSUITE_DIR)/Normal3DRectangles.class \
$(CLASSES)/$(TESTSUITE_DIR)/NormalQuadraticCurves.class \
$(CLASSES)/$(TESTSUITE_DIR)/NormalQuadraticCurvesAsPaths.class \
+ $(CLASSES)/$(TESTSUITE_DIR)/NormalCubicCurves.class \
$(CLASSES)/$(TESTSUITE_DIR)/FilledArcs.class \
$(CLASSES)/$(TESTSUITE_DIR)/FilledCircles.class \
$(CLASSES)/$(TESTSUITE_DIR)/FilledEllipses.class \
@@ -139,6 +140,7 @@
$(RESULTS)/Normal3DRectangles \
$(RESULTS)/NormalQuadraticCurves \
$(RESULTS)/NormalQuadraticCurvesAsPaths \
+ $(RESULTS)/NormalCubicCurves \
$(RESULTS)/FilledArcs \
$(RESULTS)/FilledCircles \
$(RESULTS)/FilledEllipses \
diff -r a9d264b14ae5 -r e2ffa5184756 src/org/gfxtest/framework/annotations/GraphicsPrimitives.java
--- a/src/org/gfxtest/framework/annotations/GraphicsPrimitives.java Tue Jul 26 15:52:18 2011 +0200
+++ b/src/org/gfxtest/framework/annotations/GraphicsPrimitives.java Wed Jul 27 15:38:53 2011 +0200
@@ -105,4 +105,9 @@
* Quadratic parametric curve segment in (x, y) coordinate space.
*/
QUADRATIC_CURVE,
+
+ /**
+ * Cubic parametric curve segment in (x, y) coordinate space.
+ */
+ CUBIC_CURVE,
}
diff -r a9d264b14ae5 -r e2ffa5184756 src/org/gfxtest/testsuites/NormalQuadraticCurves.java
--- a/src/org/gfxtest/testsuites/NormalQuadraticCurves.java Tue Jul 26 15:52:18 2011 +0200
+++ b/src/org/gfxtest/testsuites/NormalQuadraticCurves.java Wed Jul 27 15:38:53 2011 +0200
@@ -443,7 +443,7 @@
*/
private int computeY2(int height)
{
- return 20 + height * 2 / 3;
+ return DEFAULT_Y_OFFSET + height * 2 / 3;
}
/**
@@ -453,7 +453,7 @@
*/
private int computeY3()
{
- return 20;
+ return DEFAULT_Y_OFFSET;
}
/**
diff -r a9d264b14ae5 -r e2ffa5184756 src/org/gfxtest/testsuites/NormalQuadraticCurvesAsPaths.java
--- a/src/org/gfxtest/testsuites/NormalQuadraticCurvesAsPaths.java Tue Jul 26 15:52:18 2011 +0200
+++ b/src/org/gfxtest/testsuites/NormalQuadraticCurvesAsPaths.java Wed Jul 27 15:38:53 2011 +0200
@@ -469,7 +469,7 @@
*/
private int computeY2(int height)
{
- return 20 + height * 2 / 3;
+ return DEFAULT_Y_OFFSET + height * 2 / 3;
}
/**
@@ -479,7 +479,7 @@
*/
private int computeY3()
{
- return 20;
+ return DEFAULT_Y_OFFSET;
}
/**
More information about the distro-pkg-dev
mailing list