#62680: make test pass on Windows too. issue58019_base issue_77706_root
authorjglick@netbeans.org
Fri, 19 Aug 2005 21:14:57 +0000
changeset 58066ec987b42f
parent 57 ba8938478eaf
child 59 c20bf214af63
#62680: make test pass on Windows too.
openide.util/test/unit/src/org/openide/xml/XMLUtilTest.java
     1.1 --- a/openide.util/test/unit/src/org/openide/xml/XMLUtilTest.java	Fri Aug 19 02:56:50 2005 +0000
     1.2 +++ b/openide.util/test/unit/src/org/openide/xml/XMLUtilTest.java	Fri Aug 19 21:14:57 2005 +0000
     1.3 @@ -275,7 +275,7 @@
     1.4          doc.getDocumentElement().appendChild(doc.createElement("child"));
     1.5          ByteArrayOutputStream baos = new ByteArrayOutputStream();
     1.6          XMLUtil.write(doc, baos, "UTF-8");
     1.7 -        String data = baos.toString();
     1.8 +        String data = baos.toString()/*#62680*/.replaceAll("\r\n", "\n");
     1.9          assertTrue("had reasonable indentation in\n" + data, data.indexOf("<root>\n    <child/>\n</root>\n") != -1);
    1.10      }
    1.11