]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/menu/accelentry.cpp
fix vertical mouse wheel event rotation value, sign was reversed in r74805
[wxWidgets.git] / tests / menu / accelentry.cpp
index b1863db0cf00713c3f08620a7be8bb6bfef5bfae..1ef27b7135ead6c8e0fbc9d2d86c0f39938ebd40 100644 (file)
@@ -3,7 +3,6 @@
 // Purpose:     wxAcceleratorEntry unit test
 // Author:      Vadim Zeitlin
 // Created:     2010-12-03
 // Purpose:     wxAcceleratorEntry unit test
 // Author:      Vadim Zeitlin
 // Created:     2010-12-03
-// RCS-ID:      $Id$
 // Copyright:   (c) 2010 Vadim Zeitlin
 ///////////////////////////////////////////////////////////////////////////////
 
 // 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 );
 
 // 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
 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( AccelEntryTestCase, "AccelEntryTestCase" );
 
 namespace
@@ -67,10 +66,13 @@ void AccelEntryTestCase::Create()
     CheckAccelEntry(*pa, 'Z', wxACCEL_CTRL);
 
 
     CheckAccelEntry(*pa, 'Z', wxACCEL_CTRL);
 
 
+    // There must be a TAB in the string passed to Create()
     pa.reset(wxAcceleratorEntry::Create("Shift-Q"));
     pa.reset(wxAcceleratorEntry::Create("Shift-Q"));
+    CPPUNIT_ASSERT( !pa );
+
+    pa.reset(wxAcceleratorEntry::Create("Bar\tShift-Q"));
     CPPUNIT_ASSERT( pa );
     CPPUNIT_ASSERT( pa->IsOk() );
     CPPUNIT_ASSERT( pa );
     CPPUNIT_ASSERT( pa->IsOk() );
-
     CheckAccelEntry(*pa, 'Q', wxACCEL_SHIFT);
 
 
     CheckAccelEntry(*pa, 'Q', wxACCEL_SHIFT);