diff --git a/tests/controls/label.cpp b/tests/controls/label.cpp index bb8cf168b8..b9153e3f13 100644 --- a/tests/controls/label.cpp +++ b/tests/controls/label.cpp @@ -66,6 +66,16 @@ void DoTestLabel(wxControl* c) // And GetLabel() should be the escaped version of the text CHECK( l == wxControl::RemoveMnemonics(c->GetLabel()) ); } + +#if wxUSE_MARKUP + c->SetLabelMarkup("mnemonic in &markup"); + CHECK( c->GetLabel() == "mnemonic in &markup" ); + CHECK( c->GetLabelText() == "mnemonic in markup" ); + + c->SetLabelMarkup("&& finally"); + CHECK( c->GetLabel() == "&& finally" ); + CHECK( c->GetLabelText() == "& finally" ); +#endif // wxUSE_MARKUP } } // anonymous namespace