]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/controls/radiobuttontest.cpp
carbon sdk must be 10.7 max, 10.8 is not supported anymore
[wxWidgets.git] / tests / controls / radiobuttontest.cpp
index 92ff3a307965e27c8f44bcbf8a7967051d1eaa19..57aca12aedbf743e13e1b85d080b8e9f589236ef 100644 (file)
@@ -3,7 +3,6 @@
 // Purpose:     wxRadioButton unit test
 // Author:      Steven Lamerton
 // Created:     2010-07-30
-// RCS-ID:      $Id$
 // Copyright:   (c) 2010 Steven Lamerton
 ///////////////////////////////////////////////////////////////////////////////
 
@@ -69,9 +68,9 @@ void RadioButtonTestCase::tearDown()
 
 void RadioButtonTestCase::Click()
 {
-    // GTK does not support selecting a single radio button
-#if wxUSE_UIACTIONSIMULATOR && !defined(__WXGTK__)
-    EventCounter selected(m_radio, wxEVT_COMMAND_RADIOBUTTON_SELECTED);
+    // GTK and OS X do not support selecting a single radio button
+#if wxUSE_UIACTIONSIMULATOR && !defined(__WXGTK__) && !defined(__WXOSX__)
+    EventCounter selected(m_radio, wxEVT_RADIOBUTTON);
 
     wxUIActionSimulator sim;
 
@@ -87,7 +86,7 @@ void RadioButtonTestCase::Click()
 void RadioButtonTestCase::Value()
 {
 #ifndef __WXGTK__
-    EventCounter selected(m_radio, wxEVT_COMMAND_RADIOBUTTON_SELECTED);
+    EventCounter selected(m_radio, wxEVT_RADIOBUTTON);
 
     m_radio->SetValue(true);