Update accelerator unit test to pass after recent changes.
Changes of r66379 broke the unit test as wxAcceleratorEntry::Create() now requires the TAB to be present in the string passed to it (again). Update the test to make it pass. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
6fc7a1ad1c
commit
806b2e1692
@ -67,10 +67,13 @@ void AccelEntryTestCase::Create()
|
||||
CheckAccelEntry(*pa, 'Z', wxACCEL_CTRL);
|
||||
|
||||
|
||||
// There must be a TAB in the string passed to Create()
|
||||
pa.reset(wxAcceleratorEntry::Create("Shift-Q"));
|
||||
CPPUNIT_ASSERT( !pa );
|
||||
|
||||
pa.reset(wxAcceleratorEntry::Create("Bar\tShift-Q"));
|
||||
CPPUNIT_ASSERT( pa );
|
||||
CPPUNIT_ASSERT( pa->IsOk() );
|
||||
|
||||
CheckAccelEntry(*pa, 'Q', wxACCEL_SHIFT);
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user