Skip to content

Commit

Permalink
Merge pull request macvim-dev#1376 from ychin/fix-ci-winaltkeys-test-…
Browse files Browse the repository at this point in the history
…failure

Fix upstream merge CI failure with 'winaltkeys'
  • Loading branch information
ychin authored and tono committed Mar 21, 2023
1 parent 138b718 commit 0f1122a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion src/testdir/test_macvim.vim
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CheckFeature gui_macvim

" Tests for basic existence of commands and options to make sure no
" regressions have accidentally removed them
func Test_macvim_options_commands()
func Test_macvim_options_commands_exist()
call assert_true(exists('+antialias'), 'Missing option "antialias"')
call assert_true(exists('+blurradius'), 'Missing option "blurradius"')
call assert_true(exists('+fullscreen'), 'Missing option "fullscreen"')
Expand Down Expand Up @@ -62,3 +62,12 @@ func Test_macvim_mappings()
call feedkeys("\<ForceClick>", "xt")
call assert_equal(5, g:marker_value)
endfunc

" Test that setting invalid values with properly throw invalid argument errors
func Test_macvim_invalid_options()
call assert_fails("let &blur=-1", 'E474:')
call assert_fails("let &transparency=-1", 'E474:')
call assert_fails("let &transparency=101", 'E474:')

call assert_fails("let &fuoptions='abcdef'", 'E474:')
endfunc
2 changes: 1 addition & 1 deletion src/testdir/test_options.vim
Original file line number Diff line number Diff line change
Expand Up @@ -1656,7 +1656,7 @@ func Test_string_option_revert_on_failure()
call add(optlist, ['varsofttabstop', '12', 'a123'])
call add(optlist, ['vartabstop', '4,20', '4,'])
endif
if has('gui')
if has('gui') && has('+winaltkeys')
call add(optlist, ['winaltkeys', 'no', 'a123'])
endif
for opt in optlist
Expand Down

0 comments on commit 0f1122a

Please sign in to comment.