]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/xml/xmltest.cpp
Fixed value column rendering for properties which do not create editor control when...
[wxWidgets.git] / tests / xml / xmltest.cpp
index d8cda12b03896d59a834f54a31a79654e9c9e835..9f3d6056a51c9d1a8afac2493f7801a22142d5f2 100644 (file)
@@ -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() );
 }