]> git.saurik.com Git - wxWidgets.git/commitdiff
Tweak offset in the RichTextCtrlTestCase::UrlEvent() to make it pass.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 8 Feb 2011 17:24:50 +0000 (17:24 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 8 Feb 2011 17:24:50 +0000 (17:24 +0000)
The mouse was not positioned over the URL in this test so clicking it didn't
work. Tweak the offset to make it pass but it would be better to have some
more fool-proof way of finding the real position of the text in the control.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/controls/richtextctrltest.cpp

index 68c92f3d5eae05598d94248c32cc1690f42e2c70..9cf88e12ad9083d001070f2d38e065cecf28549c 100644 (file)
@@ -246,7 +246,7 @@ void RichTextCtrlTestCase::UrlEvent()
     m_rich->EndURL();
 
     wxUIActionSimulator sim;
     m_rich->EndURL();
 
     wxUIActionSimulator sim;
-    sim.MouseMove(m_rich->ClientToScreen(wxPoint(5, 5)));
+    sim.MouseMove(m_rich->ClientToScreen(wxPoint(10, 10)));
     wxYield();
 
     sim.MouseClick();
     wxYield();
 
     sim.MouseClick();