Verify that wxTextCtrl::ChangeValue("") doesn't generate events

Check that changing the value of an already empty control to empty
doesn't result in any events.

See #18264.
This commit is contained in:
Vadim Zeitlin
2018-10-30 01:35:32 +01:00
parent 602b4a6863
commit f3c148cd4a

View File

@@ -83,6 +83,10 @@ void TextEntryTestCase::TextChangeEvents()
entry->Clear(); entry->Clear();
CPPUNIT_ASSERT_EQUAL( 1, updated.GetCount() ); CPPUNIT_ASSERT_EQUAL( 1, updated.GetCount() );
updated.Clear(); updated.Clear();
entry->ChangeValue("");
CPPUNIT_ASSERT_EQUAL( 0, updated.GetCount() );
updated.Clear();
} }
void TextEntryTestCase::CheckStringSelection(const char *sel) void TextEntryTestCase::CheckStringSelection(const char *sel)