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:
parent
05627cf54c
commit
a6b8774636
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user