Alistair Leslie-Hughes leslie_alistair@hotmail.com writes:
diff --git a/dlls/msxml3/tests/domdoc.c b/dlls/msxml3/tests/domdoc.c index 6f790fe..b06e57e 100644 --- a/dlls/msxml3/tests/domdoc.c +++ b/dlls/msxml3/tests/domdoc.c @@ -143,7 +143,11 @@ static const CHAR szTransformSSXML[] = "</xsl:stylesheet>";
static const CHAR szTransformOutput[] = -"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n" +"<html>\r\n<body>\r\n<h1>\r\n" +"Hello World\r\n" +"</h1>\r\n</body>\r\n</html>\r\n";
+static const CHAR szTransformOutputWine[] = "<html><body><h1>\n" "Hello World\n" "</h1></body></html>\n"; @@ -3193,7 +3197,8 @@ static void test_testTransforms(void)
hr = IXMLDOMDocument_transformNode(doc, pNode, &bOut); ok(hr == S_OK, "ret %08x\n", hr );
ok( !lstrcmpW( bOut, _bstr_(szTransformOutput) ), "Stylesheet output not correct\n");
ok( !lstrcmpW( bOut, _bstr_(szTransformOutput)) || /* Windows */
!lstrcmpW( bOut, _bstr_(szTransformOutputWine)) /* Wine */, "Stylesheet output not correct\n");
You shouldn't need a special case for Wine. What you need is a smarter comparison function that ignores EOL characters.