+
+void MarkupTestCase::Strip()
+{
+ #define CHECK_STRIP( text, stripped ) \
+ CPPUNIT_ASSERT_EQUAL( stripped, wxMarkupParser::Strip(text) )
+
+ CHECK_STRIP( "", "" );
+ CHECK_STRIP( "foo", "foo" );
+ CHECK_STRIP( "<foo>", "<foo>" );
+ CHECK_STRIP( "<b>Big</b> problem", "Big problem" );
+ CHECK_STRIP( "<span foreground='red'>c</span>"
+ "<span background='green'>o</span>"
+ "<span background='blue'>l</span>"
+ "<span background='green'>o</span>"
+ "<span foreground='yellow'>u</span>"
+ "<span background='green'>r</span>",
+ "colour" );
+
+ #undef CHECK_STRIP
+}