From: Vadim Zeitlin Date: Tue, 8 Feb 2011 17:24:50 +0000 (+0000) Subject: Tweak offset in the RichTextCtrlTestCase::UrlEvent() to make it pass. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b083f3e8c1659070bd007f059957a31a4209e5ae?ds=inline Tweak offset in the RichTextCtrlTestCase::UrlEvent() to make it pass. 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 --- diff --git a/tests/controls/richtextctrltest.cpp b/tests/controls/richtextctrltest.cpp index 68c92f3d5e..9cf88e12ad 100644 --- a/tests/controls/richtextctrltest.cpp +++ b/tests/controls/richtextctrltest.cpp @@ -246,7 +246,7 @@ void RichTextCtrlTestCase::UrlEvent() m_rich->EndURL(); wxUIActionSimulator sim; - sim.MouseMove(m_rich->ClientToScreen(wxPoint(5, 5))); + sim.MouseMove(m_rich->ClientToScreen(wxPoint(10, 10))); wxYield(); sim.MouseClick();