From: Stefan Csomor Date: Thu, 13 Jun 2013 14:06:02 +0000 (+0000) Subject: reusing existing API X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/18c8b0ee1dd941b1174f3c6324cbcfabb4a08ba9?ds=sidebyside;hp=e5354813181461c154044d52a464b29fa1aefaf8 reusing existing API git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74235 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/tests/controls/slidertest.cpp b/tests/controls/slidertest.cpp index 2c4d35ae19..dd149ff4bf 100644 --- a/tests/controls/slidertest.cpp +++ b/tests/controls/slidertest.cpp @@ -197,10 +197,7 @@ void SliderTestCase::Thumb() m_slider->SetValue(0); - sim.MouseMove(m_slider->ClientToScreen(wxPoint(10, 10))); - wxYield(); - - sim.MouseClickAndDragTo(m_slider->ClientToScreen(wxPoint(50, 10))); + sim.MouseDragDrop(m_slider->ClientToScreen(wxPoint(10, 10)),m_slider->ClientToScreen(wxPoint(50, 10))); wxYield(); CPPUNIT_ASSERT(track.GetCount() != 0);