]> git.saurik.com Git - wxWidgets.git/commitdiff
Update accelerator unit test to pass after recent changes.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 15 Dec 2010 12:03:54 +0000 (12:03 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 15 Dec 2010 12:03:54 +0000 (12:03 +0000)
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

index b1863db0cf00713c3f08620a7be8bb6bfef5bfae..bd51567dac96cce9200b527aec661cd613a10037 100644 (file)
@@ -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);