From 806b2e16927d1806939488f3b3993c8d88badf49 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 15 Dec 2010 12:03:54 +0000 Subject: [PATCH] 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 --- tests/menu/accelentry.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/menu/accelentry.cpp b/tests/menu/accelentry.cpp index b1863db0cf..bd51567dac 100644 --- a/tests/menu/accelentry.cpp +++ b/tests/menu/accelentry.cpp @@ -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);