Add primary and secondary mouse-button helpers to the test harness and use them in wxUIActionSimulator-based GUI tests instead of relying on physical left and right buttons.
Document the convention for new GUI tests.
https://github.com/wxWidgets/wxWidgets/pull/26723
(8 files)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
Without this, I have to unswap my mouse buttons for the GUI tests to pass.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
@vadz commented on this pull request.
I'm not sure if this is the best way to do it, shouldn't we just translate LEFT to RIGHT inside wxMSW wxUIActionSimulator implementation if the mouse buttons are swapped? It wouldn't require any changes to the code (maybe just a mention in the docs) and seems simpler.
> private:
+ static bool MouseButtonsSwapped()
+ { return wxSystemSettings::GetMetric(wxSYS_SWAP_BUTTONS) != 0; }
This should be moved to src/common/uiactioncmn.cpp to avoid including wx/settings.h from here.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()