summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Steiner <ssteiner@apache.org>2020-04-06 10:51:47 +0000
committerSimon Steiner <ssteiner@apache.org>2020-04-06 10:51:47 +0000
commite171bfe575eaa16b11fbdf1cd9db5730d8949020 (patch)
tree025151fde742caf614c42857e292ec4fa0123985
parentb2c7ab125a60a23d805db5da47b9274913833a6f (diff)
downloadxmlgraphics-fop-e171bfe575eaa16b11fbdf1cd9db5730d8949020.tar.gz
xmlgraphics-fop-e171bfe575eaa16b11fbdf1cd9db5730d8949020.zip
Fix test on Windows
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1876180 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--fop-core/src/test/java/org/apache/fop/render/ps/svg/GradientTestCase.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/fop-core/src/test/java/org/apache/fop/render/ps/svg/GradientTestCase.java b/fop-core/src/test/java/org/apache/fop/render/ps/svg/GradientTestCase.java
index 908c60350..35b3bc9b7 100644
--- a/fop-core/src/test/java/org/apache/fop/render/ps/svg/GradientTestCase.java
+++ b/fop-core/src/test/java/org/apache/fop/render/ps/svg/GradientTestCase.java
@@ -68,9 +68,8 @@ public class GradientTestCase {
svgGraphics2D.setGraphicContext(new GraphicContext());
svgGraphics2D.translate(100, 100);
svgGraphics2D.applyPaint(gradient, true);
- byte[] actual = out.toByteArray();
- byte[] expected = IOUtils.toByteArray(getClass().getResourceAsStream(expectedResourceName));
- assertEquals(new String(expected, "US-ASCII"), new String(actual, "US-ASCII"));
+ String expected = IOUtils.toString(getClass().getResourceAsStream(expectedResourceName));
+ assertEquals(expected.replace("\r", ""), out.toString());
}
}