X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/232fdc630c42eb165f7659981043e794be03b3b7..e1efca652844273c3e8d32c7e5f442b87e455ca7:/tests/controls/gridtest.cpp?ds=sidebyside diff --git a/tests/controls/gridtest.cpp b/tests/controls/gridtest.cpp index fca5d58340..49effd1dcf 100644 --- a/tests/controls/gridtest.cpp +++ b/tests/controls/gridtest.cpp @@ -95,7 +95,7 @@ private: // register in the unnamed registry so that these tests are run by default CPPUNIT_TEST_SUITE_REGISTRATION( GridTestCase ); -// 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( GridTestCase, "GridTestCase" ); //initialise the static variable @@ -238,7 +238,7 @@ void GridTestCase::CellSelect() void GridTestCase::LabelClick() { -#if wxUSE_UIACTIONSIMULATOR && !defined(__WXGTK__) +#if wxUSE_UIACTIONSIMULATOR wxTestableFrame* frame = wxStaticCast(wxTheApp->GetTopWindow(), wxTestableFrame); @@ -263,9 +263,6 @@ void GridTestCase::LabelClick() sim.MouseDblClick(); wxYield(); - //A double click event sends a single click event first - //test to ensure this still happens in the future - CPPUNIT_ASSERT_EQUAL(1, frame->GetEventCount(wxEVT_GRID_LABEL_LEFT_CLICK)); CPPUNIT_ASSERT_EQUAL(1, frame->GetEventCount(wxEVT_GRID_LABEL_LEFT_DCLICK)); sim.MouseClick(wxMOUSE_BTN_RIGHT); @@ -292,7 +289,7 @@ void GridTestCase::LabelClick() void GridTestCase::SortClick() { -#if wxUSE_UIACTIONSIMULATOR && !defined(__WXGTK__) +#if wxUSE_UIACTIONSIMULATOR m_grid->SetSortingColumn(0); wxTestableFrame* frame = wxStaticCast(wxTheApp->GetTopWindow(), @@ -312,8 +309,6 @@ void GridTestCase::SortClick() wxYield(); CPPUNIT_ASSERT_EQUAL(1, frame->GetEventCount()); - - m_grid->SetSortingColumn(wxNOT_FOUND); #endif }