Add unit test for wxSearchCtrl::ChangeValue()

Verify that it actually does change the value.

See #16998.
This commit is contained in:
Vadim Zeitlin
2018-01-29 19:08:16 +01:00
parent 58ac3d3690
commit f24872f6f4

View File

@@ -49,4 +49,12 @@ SEARCH_CTRL_TEST_CASE("wxSearchCtrl::Focus", "[wxSearchCtrl][focus]")
}
#endif // !__WXOSX__
SEARCH_CTRL_TEST_CASE("wxSearchCtrl::ChangeValue", "[wxSearchCtrl][text]")
{
CHECK( m_search->GetValue() == wxString() );
m_search->ChangeValue("foo");
CHECK( m_search->GetValue() == "foo" );
}
#endif // wxUSE_SEARCHCTRL