]> git.saurik.com Git - wxWidgets.git/commitdiff
reusing existing API
authorStefan Csomor <csomor@advancedconcepts.ch>
Thu, 13 Jun 2013 14:06:02 +0000 (14:06 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Thu, 13 Jun 2013 14:06:02 +0000 (14:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74235 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/controls/slidertest.cpp

index 2c4d35ae1964c47335cadf30e03a08d11aa37902..dd149ff4bfbd247988d3430e52635c683cf8a6ca 100644 (file)
@@ -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);