Skip to content

Conversation

ychin
Copy link
Member

@ychin ychin commented Jan 8, 2025

Add test suite utility functions to set/restore defaults, adding/tearing down a new Vim window, making temp files, wait for full screen transition. This helps simplify per-test code and prevent mistakes.

Add new tests for delayed full screen on startup. This happens when a vimrc/gvimrc sets 'fullscreen' on startup and MacVim has to delay entering full screen until the window has been presented. This incidentally regression tests a bug (fixed in #1521) where simply having 'set fuopt= fullscreen' in a gvimrc would cause MacVim to crash on startup due to bad interaction with window resize messages.

@ychin ychin added the Non User Facing Non-user facing change. These issues do no need to show up in release notes. label Jan 8, 2025
@ychin ychin added this to the Release 181 milestone Jan 8, 2025
@ychin ychin force-pushed the tests-refactor-add-fullscreen-delayed branch 2 times, most recently from 91840e2 to 332f2ca Compare January 8, 2025 07:24
Add test suite utility functions to set/restore defaults, adding/tearing
down a new Vim window, making temp files, wait for full screen
transition. This helps simplify per-test code and prevent mistakes.

Add new tests for delayed full screen on startup. This happens when a
vimrc/gvimrc sets 'fullscreen' on startup and MacVim has to delay
entering full screen until the window has been presented. This
incidentally regression tests a bug (fixed in macvim-dev#1521) where simply having
'set fuopt= fullscreen' in a gvimrc would cause MacVim to crash on
startup due to bad interaction with window resize messages.
@ychin ychin force-pushed the tests-refactor-add-fullscreen-delayed branch from 332f2ca to e33658a Compare January 9, 2025 10:31
@ychin ychin merged commit 598b142 into macvim-dev:master Jan 9, 2025
3 of 4 checks passed
@ychin ychin deleted the tests-refactor-add-fullscreen-delayed branch January 9, 2025 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Non User Facing Non-user facing change. These issues do no need to show up in release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant