Add unit test for wxGenericStaticText label

Run the same tests for it as for the native wxStaticText too.
This commit is contained in:
Vadim Zeitlin
2019-06-19 18:55:52 +02:00
parent d22321b14f
commit 5e98099699

View File

@@ -25,6 +25,8 @@
#include "wx/scopedptr.h"
#include "wx/stattext.h"
#include "wx/generic/stattextg.h"
namespace
{
@@ -101,6 +103,13 @@ TEST_CASE("wxControl::Label", "[wxControl][label]")
DoTestLabel(st.get());
}
SECTION("wxGenericStaticText")
{
const wxScopedPtr<wxGenericStaticText>
gst(new wxGenericStaticText(wxTheApp->GetTopWindow(), wxID_ANY, ORIGINAL_LABEL));
DoTestLabel(gst.get());
}
SECTION("wxCheckBox")
{
const wxScopedPtr<wxCheckBox>