git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74168
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void ListBaseTestCase::ItemClick()
{
void ListBaseTestCase::ItemClick()
{
- // FIXME: This test fail under wxGTK because we get 3 FOCUSED events and
- // 2 SELECTED ones instead of the one of each we expect for some
- // reason, this needs to be debugged as it may indicate a bug in the
- // generic wxListCtrl implementation.
-#if wxUSE_UIACTIONSIMULATOR && !defined(__WXGTK__)
+#if wxUSE_UIACTIONSIMULATOR
#ifdef __WXMSW__
// FIXME: This test fails on MSW buildbot slaves although works fine on
#ifdef __WXMSW__
// FIXME: This test fails on MSW buildbot slaves although works fine on
list->GetItemRect(0, pos);
//We move in slightly so we are not on the edge
list->GetItemRect(0, pos);
//We move in slightly so we are not on the edge
- wxPoint point = list->ClientToScreen(pos.GetPosition()) + wxPoint(2, 2);
+ wxPoint point = list->ClientToScreen(pos.GetPosition()) + wxPoint(10, 5);
sim.MouseMove(point);
wxYield();
sim.MouseMove(point);
wxYield();
// when the first item was selected the focus changes to it, but not
// on subsequent clicks
// when the first item was selected the focus changes to it, but not
// on subsequent clicks
+
+ // FIXME: This test fail under wxGTK & wxOSX because we get 3 FOCUSED events and
+ // 2 SELECTED ones instead of the one of each we expect for some
+ // reason, this needs to be debugged as it may indicate a bug in the
+ // generic wxListCtrl implementation.
+#ifndef _WX_GENERIC_LISTCTRL_H_
CPPUNIT_ASSERT_EQUAL(1, focused.GetCount());
CPPUNIT_ASSERT_EQUAL(1, selected.GetCount());
CPPUNIT_ASSERT_EQUAL(1, focused.GetCount());
CPPUNIT_ASSERT_EQUAL(1, selected.GetCount());
CPPUNIT_ASSERT_EQUAL(1, activated.GetCount());
CPPUNIT_ASSERT_EQUAL(1, rclick.GetCount());
CPPUNIT_ASSERT_EQUAL(1, activated.GetCount());
CPPUNIT_ASSERT_EQUAL(1, rclick.GetCount());