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
This commit is contained in:
parent
fb76ad8f55
commit
b083f3e8c1
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user