Skip to content

Add unit tests for ToggleFullScreen hotkey (PR #587)#2

Draft
Copilot wants to merge 2 commits intodevelopfrom
copilot/build-and-test-pull-request
Draft

Add unit tests for ToggleFullScreen hotkey (PR #587)#2
Copilot wants to merge 2 commits intodevelopfrom
copilot/build-and-test-pull-request

Conversation

Copy link

Copilot AI commented Feb 27, 2026

PR dpaulat#587 added ToggleFullScreen to the Hotkey enum with F11 as its default binding, but no tests covered the new enum value, its name mappings, or its inclusion in the HotkeyIterator range.

Changes

  • test/source/scwx/qt/types/hotkey_types.test.cpp (new): Tests for the ToggleFullScreen hotkey:

    • Short/long name lookups ("toggle_full_screen" / "Toggle Full Screen")
    • Reverse lookups via GetHotkeyFromShortName / GetHotkeyFromLongName
    • HotkeyIterator range includes Hotkey::ToggleFullScreen
  • test/test.cmake: Adds SRC_QT_TYPES_TESTS variable and wires the new test file into the wxtest target with a Source Files\\qt\\types source group.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: computerman0 <111095231+computerman0@users.noreply.github.com>
Copilot AI changed the title [WIP] Build and test the newest pull request Add unit tests for ToggleFullScreen hotkey (PR #587) Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants