X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2388960a08b4247851f588f8d9f078ff7ae7ff21..34c921fc4d717eb605a7c19e090f4a1735e4d8e4:/tests/xml/xmltest.cpp?ds=sidebyside diff --git a/tests/xml/xmltest.cpp b/tests/xml/xmltest.cpp index d8cda12b03..9f3d6056a5 100644 --- a/tests/xml/xmltest.cpp +++ b/tests/xml/xmltest.cpp @@ -210,7 +210,8 @@ void XmlTestCase::CDATA() n = n->GetChildren(); CPPUNIT_ASSERT( n ); - // currently leading white space is stripped by trailing is preserved (see - // #10552) - CPPUNIT_ASSERT_EQUAL( "Giovanni Mittone\n", n->GetContent() ); + // check that both leading (" ") and trailing white space is not part of + // the node contents when CDATA is used and wxXMLDOC_KEEP_WHITESPACE_NODES + // is not + CPPUNIT_ASSERT_EQUAL( "Giovanni Mittone", n->GetContent() ); }