]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/controls/hyperlinkctrltest.cpp
Remove wxRTTI macros from wxSpinCtrlGTKBase.
[wxWidgets.git] / tests / controls / hyperlinkctrltest.cpp
index 2d5fda3577b3c3cc02ac2ff61fdee1119793aaf2..a6197c0a74375da6baf7898b63da6f05459d54cb 100644 (file)
@@ -51,7 +51,7 @@ private:
 // register in the unnamed registry so that these tests are run by default
 CPPUNIT_TEST_SUITE_REGISTRATION( HyperlinkCtrlTestCase );
 
-// 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( HyperlinkCtrlTestCase, "HyperlinkCtrlTestCase" );
 
 void HyperlinkCtrlTestCase::setUp()
@@ -94,10 +94,7 @@ void HyperlinkCtrlTestCase::Url()
 void HyperlinkCtrlTestCase::Click()
 {
 #if wxUSE_UIACTIONSIMULATOR && !defined(__WXGTK__)
-    wxTestableFrame* frame = wxStaticCast(wxTheApp->GetTopWindow(),
-                                          wxTestableFrame);
-
-    EventCounter count(m_hyperlink, wxEVT_COMMAND_HYPERLINK);
+    EventCounter hyperlink(m_hyperlink, wxEVT_COMMAND_HYPERLINK);
 
     wxUIActionSimulator sim;
 
@@ -107,7 +104,7 @@ void HyperlinkCtrlTestCase::Click()
     sim.MouseClick();
     wxYield();
 
-    CPPUNIT_ASSERT_EQUAL(1, frame->GetEventCount());
+    CPPUNIT_ASSERT_EQUAL(1, hyperlink.GetCount());
 #endif
 }