Add unit test for wxGenericStaticText label
Run the same tests for it as for the native wxStaticText too.
This commit is contained in:
@@ -25,6 +25,8 @@
|
|||||||
#include "wx/scopedptr.h"
|
#include "wx/scopedptr.h"
|
||||||
#include "wx/stattext.h"
|
#include "wx/stattext.h"
|
||||||
|
|
||||||
|
#include "wx/generic/stattextg.h"
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -101,6 +103,13 @@ TEST_CASE("wxControl::Label", "[wxControl][label]")
|
|||||||
DoTestLabel(st.get());
|
DoTestLabel(st.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SECTION("wxGenericStaticText")
|
||||||
|
{
|
||||||
|
const wxScopedPtr<wxGenericStaticText>
|
||||||
|
gst(new wxGenericStaticText(wxTheApp->GetTopWindow(), wxID_ANY, ORIGINAL_LABEL));
|
||||||
|
DoTestLabel(gst.get());
|
||||||
|
}
|
||||||
|
|
||||||
SECTION("wxCheckBox")
|
SECTION("wxCheckBox")
|
||||||
{
|
{
|
||||||
const wxScopedPtr<wxCheckBox>
|
const wxScopedPtr<wxCheckBox>
|
||||||
|
Reference in New Issue
Block a user