Run label unit tests for ellipsized wxStaticText too

Check that the public methods still behave as expected even if the
displayed value is different because it is ellipsized.
This commit is contained in:
Vadim Zeitlin 2019-06-20 01:45:26 +02:00
parent 05627cf54c
commit a6b8774636

View File

@ -98,6 +98,15 @@ TEST_CASE("wxControl::Label", "[wxControl][label]")
DoTestLabel(st.get()); DoTestLabel(st.get());
} }
SECTION("wxStaticText/ellipsized")
{
const wxScopedPtr<wxStaticText>
st(new wxStaticText(wxTheApp->GetTopWindow(), wxID_ANY, ORIGINAL_LABEL,
wxDefaultPosition, wxDefaultSize,
wxST_ELLIPSIZE_START));
DoTestLabel(st.get());
}
SECTION("wxGenericStaticText") SECTION("wxGenericStaticText")
{ {
const wxScopedPtr<wxGenericStaticText> const wxScopedPtr<wxGenericStaticText>