aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Steiner <ssteiner@apache.org>2020-04-02 10:41:17 +0000
committerSimon Steiner <ssteiner@apache.org>2020-04-02 10:41:17 +0000
commitf301fa9f58499d597ff46966379c21b79f732f7f (patch)
tree75e6bddb48ff2af2ff4676294b50d645fe28cd88
parent811073a987d6b585222994615666ec699cf6d19b (diff)
downloadxmlgraphics-fop-f301fa9f58499d597ff46966379c21b79f732f7f.tar.gz
xmlgraphics-fop-f301fa9f58499d597ff46966379c21b79f732f7f.zip
Fix test on Windows
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1876041 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--fop-core/src/test/java/org/apache/fop/accessibility/fo/FO2StructureTreeConverterTestCase.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/fop-core/src/test/java/org/apache/fop/accessibility/fo/FO2StructureTreeConverterTestCase.java b/fop-core/src/test/java/org/apache/fop/accessibility/fo/FO2StructureTreeConverterTestCase.java
index 39b6cbaf0..5d353a886 100644
--- a/fop-core/src/test/java/org/apache/fop/accessibility/fo/FO2StructureTreeConverterTestCase.java
+++ b/fop-core/src/test/java/org/apache/fop/accessibility/fo/FO2StructureTreeConverterTestCase.java
@@ -27,7 +27,6 @@ import java.io.InputStream;
import java.io.OutputStream;
import java.io.StringWriter;
-import javax.xml.transform.OutputKeys;
import javax.xml.transform.Result;
import javax.xml.transform.Source;
import javax.xml.transform.Transformer;
@@ -185,9 +184,8 @@ public class FO2StructureTreeConverterTestCase {
StringWriter sw = new StringWriter();
TransformerFactory tf = TransformerFactory.newInstance();
Transformer transformer = tf.newTransformer();
- transformer.setOutputProperty(OutputKeys.INDENT, "yes");
transformer.transform(new DOMSource(doc), new StreamResult(sw));
- assertEquals(tree, sw.toString());
+ assertEquals(tree.replace("\n", ""), sw.toString().replace("\n", ""));
}
private void testConverter(String foResourceName) throws Exception {