]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/controls/slidertest.cpp
wxMessageBox off the main thread lost result code.
[wxWidgets.git] / tests / controls / slidertest.cpp
index 2c4d35ae1964c47335cadf30e03a08d11aa37902..771cd16a082a392f820634dc6019e09adff7567a 100644 (file)
@@ -3,7 +3,6 @@
 // Purpose:     wxSlider unit test
 // Author:      Steven Lamerton
 // Created:     2010-07-20
 // Purpose:     wxSlider unit test
 // Author:      Steven Lamerton
 // Created:     2010-07-20
-// RCS-ID:      $Id$
 // Copyright:   (c) 2010 Steven Lamerton
 ///////////////////////////////////////////////////////////////////////////////
 
 // Copyright:   (c) 2010 Steven Lamerton
 ///////////////////////////////////////////////////////////////////////////////
 
@@ -197,10 +196,7 @@ void SliderTestCase::Thumb()
 
     m_slider->SetValue(0);
 
 
     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);
     wxYield();
 
     CPPUNIT_ASSERT(track.GetCount() != 0);