Add unit test for wxSearchCtrl::ChangeValue()
Verify that it actually does change the value. See #16998.
This commit is contained in:
@@ -49,4 +49,12 @@ SEARCH_CTRL_TEST_CASE("wxSearchCtrl::Focus", "[wxSearchCtrl][focus]")
|
|||||||
}
|
}
|
||||||
#endif // !__WXOSX__
|
#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
|
#endif // wxUSE_SEARCHCTRL
|
||||||
|
Reference in New Issue
Block a user