aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorVincent Hennebert <vhennebert@apache.org>2014-08-01 15:30:26 +0000
committerVincent Hennebert <vhennebert@apache.org>2014-08-01 15:30:26 +0000
commita012da374a99ca4216f48ff5a5bf2c5c6c111c41 (patch)
tree01fefe8240d8a1371df343b22efb1cd8cf1943fc /test
parentcfee3a4ddb5c292bc2404448266dfed9c42725cf (diff)
downloadxmlgraphics-fop-a012da374a99ca4216f48ff5a5bf2c5c6c111c41.tar.gz
xmlgraphics-fop-a012da374a99ca4216f48ff5a5bf2c5c6c111c41.zip
FOP-2393: only the gradient's transform should be used. Other transforms will have already been applied to the user space.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1615142 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rw-r--r--test/java/org/apache/fop/render/ps/svg/GradientTestCase.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/java/org/apache/fop/render/ps/svg/GradientTestCase.java b/test/java/org/apache/fop/render/ps/svg/GradientTestCase.java
index 397dbed0f..908c60350 100644
--- a/test/java/org/apache/fop/render/ps/svg/GradientTestCase.java
+++ b/test/java/org/apache/fop/render/ps/svg/GradientTestCase.java
@@ -66,6 +66,7 @@ public class GradientTestCase {
ByteArrayOutputStream out = new ByteArrayOutputStream();
PSSVGGraphics2D svgGraphics2D = new PSSVGGraphics2D(false, new PSGenerator(out));
svgGraphics2D.setGraphicContext(new GraphicContext());
+ svgGraphics2D.translate(100, 100);
svgGraphics2D.applyPaint(gradient, true);
byte[] actual = out.toByteArray();
byte[] expected = IOUtils.toByteArray(getClass().getResourceAsStream(expectedResourceName));