]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/controls/hyperlinkctrltest.cpp
No real changes, just simplify wxBookCtrlBase unit test a little.
[wxWidgets.git] / tests / controls / hyperlinkctrltest.cpp
index 8d8d76d9c127040964713bfcc3454ff05cbd7f7c..cc4254a5ac77d838daa53b92b603458381c2c740 100644 (file)
@@ -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_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
 }