From a6b87746362451bd842ae95ca5d3a82ce76a3e4f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 20 Jun 2019 01:45:26 +0200 Subject: [PATCH] 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. --- tests/controls/label.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/controls/label.cpp b/tests/controls/label.cpp index 0e193196a8..94806a8cd7 100644 --- a/tests/controls/label.cpp +++ b/tests/controls/label.cpp @@ -98,6 +98,15 @@ TEST_CASE("wxControl::Label", "[wxControl][label]") DoTestLabel(st.get()); } + SECTION("wxStaticText/ellipsized") + { + const wxScopedPtr + st(new wxStaticText(wxTheApp->GetTopWindow(), wxID_ANY, ORIGINAL_LABEL, + wxDefaultPosition, wxDefaultSize, + wxST_ELLIPSIZE_START)); + DoTestLabel(st.get()); + } + SECTION("wxGenericStaticText") { const wxScopedPtr