X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dbc7ceb9250bcc2f856f87555f8f4273da31c148..6cabfc592b6859459f5e1d3ad1bdf4aee528ee40:/tests/toplevel/toplevel.cpp diff --git a/tests/toplevel/toplevel.cpp b/tests/toplevel/toplevel.cpp index 9306a93f5e..0e5b42db0e 100644 --- a/tests/toplevel/toplevel.cpp +++ b/tests/toplevel/toplevel.cpp @@ -3,7 +3,7 @@ // Purpose: Tests for wxTopLevelWindow // Author: Kevin Ollivier // Created: 2008-05-25 -// RCS-ID: $Id: toplevel.cpp 53741 2008-05-25 03:08:31Z VZ $ +// RCS-ID: $Id$ // Copyright: (c) 2009 Kevin Ollivier /////////////////////////////////////////////////////////////////////////////// @@ -18,8 +18,10 @@ #endif #ifndef WX_PRECOMP - #include "wx/app.h" - #include "wx/window.h" + #include "wx/dialog.h" + #include "wx/frame.h" + #include "wx/textctrl.h" + #include "wx/toplevel.h" #endif // WX_PRECOMP #include "wx/evtloop.h" @@ -50,10 +52,10 @@ private: }; // register in the unnamed registry so that these tests are run by default -CPPUNIT_TEST_SUITE_REGISTRATION( TopLevelWindowTestCase ); +//CPPUNIT_TEST_SUITE_REGISTRATION( TopLevelWindowTestCase ); -// also include in it's own registry so that these tests can be run alone -CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( TopLevelWindowTestCase, "TopLevelWindowTestCase" ); +// also include in its own registry so that these tests can be run alone +CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( TopLevelWindowTestCase, "fixme" ); // ---------------------------------------------------------------------------- // test initialization @@ -93,7 +95,7 @@ void TopLevelWindowTestCase::TopLevelWindowShowTest(wxTopLevelWindow* tlw) textCtrl->SetFocus(); // only run this test on platforms where ShowWithoutActivating is implemented. -#ifdef __WXMSW__ || defined(__WXMAC__) +#if defined(__WXMSW__) || defined(__WXMAC__) tlw->ShowWithoutActivating(); CPPUNIT_ASSERT(tlw->IsShown()); CPPUNIT_ASSERT(!tlw->IsActive());