Add unit test for wxSearchCtrl::ChangeValue()
Verify that it actually does change the value. See #16998.
This commit is contained in:
parent
58ac3d3690
commit
f24872f6f4
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue