X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/944f641cf9e822770d667be45926e58deb339482..ac687ddffb6f199603abc2415f7bcf0d051f1eca:/tests/menu/accelentry.cpp diff --git a/tests/menu/accelentry.cpp b/tests/menu/accelentry.cpp index b1863db0cf..1ef27b7135 100644 --- a/tests/menu/accelentry.cpp +++ b/tests/menu/accelentry.cpp @@ -3,7 +3,6 @@ // Purpose: wxAcceleratorEntry unit test // Author: Vadim Zeitlin // Created: 2010-12-03 -// RCS-ID: $Id$ // Copyright: (c) 2010 Vadim Zeitlin /////////////////////////////////////////////////////////////////////////////// @@ -43,7 +42,7 @@ private: // register in the unnamed registry so that these tests are run by default CPPUNIT_TEST_SUITE_REGISTRATION( AccelEntryTestCase ); -// also include in it's own registry so that these tests can be run alone +// also include in its own registry so that these tests can be run alone CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( AccelEntryTestCase, "AccelEntryTestCase" ); namespace @@ -67,10 +66,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);