Commit e33658a
committed
Refactor MacVim tests and add startup delayed full screen tests
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.1 parent c93f9c0 commit e33658a
File tree
3 files changed
+219
-150
lines changed- src/MacVim
- MacVimTests
3 files changed
+219
-150
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1298 | 1298 | | |
1299 | 1299 | | |
1300 | 1300 | | |
1301 | | - | |
1302 | | - | |
1303 | | - | |
1304 | | - | |
1305 | | - | |
1306 | | - | |
1307 | | - | |
| 1301 | + | |
1308 | 1302 | | |
1309 | 1303 | | |
1310 | 1304 | | |
1311 | 1305 | | |
1312 | 1306 | | |
1313 | 1307 | | |
1314 | 1308 | | |
1315 | | - | |
| 1309 | + | |
1316 | 1310 | | |
1317 | 1311 | | |
1318 | 1312 | | |
1319 | 1313 | | |
1320 | 1314 | | |
1321 | 1315 | | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
1322 | 1319 | | |
1323 | 1320 | | |
1324 | 1321 | | |
1325 | 1322 | | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
1326 | 1334 | | |
1327 | 1335 | | |
1328 | 1336 | | |
| |||
0 commit comments