From 5e98099699c2f89b41ba750bb9429f4adec86395 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 19 Jun 2019 18:55:52 +0200 Subject: [PATCH] Add unit test for wxGenericStaticText label Run the same tests for it as for the native wxStaticText too. --- tests/controls/label.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/controls/label.cpp b/tests/controls/label.cpp index 5944966c2d..3b52fb02f6 100644 --- a/tests/controls/label.cpp +++ b/tests/controls/label.cpp @@ -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 + gst(new wxGenericStaticText(wxTheApp->GetTopWindow(), wxID_ANY, ORIGINAL_LABEL)); + DoTestLabel(gst.get()); + } + SECTION("wxCheckBox") { const wxScopedPtr