Skip to content

Commit 797c379

Browse files
authored
Merge pull request #1029 from ychin/macvim-test-more-options
MacVim tests should test existence for autocmd and features too
2 parents a077fa5 + 925b757 commit 797c379

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

src/testdir/test_macvim.vim

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ func Test_macvim_options_commands()
1818

1919
call assert_true(exists(':macaction'), 'Missing command "macaction"')
2020
call assert_true(exists(':macmenu'), 'Missing command "macmenu"')
21+
22+
call assert_true(exists('##OSAppearanceChanged'), 'Missing autocmd event "OSAppearanceChanged"')
23+
24+
call assert_true(has('fullscreen'), 'Missing feature "fullscreen"')
25+
call assert_true(has('gui_macvim'), 'Missing feature "gui_macvim"')
26+
call assert_true(has('odbeditor'), 'Missing feature "odbeditor"')
27+
call assert_true(has('touchbar'), 'Missing feature "touchbar"')
28+
call assert_true(has('transparency'), 'Missing feature "transparency"')
2129
endfunc
2230

2331
" Test that Cmd-key and touch pad mappings are working (this doesn't actually
@@ -26,9 +34,9 @@ endfunc
2634
func Test_macvim_mappings()
2735
let g:marker_value=0
2836

29-
nnoremap <D-1> :let g:marker_value=1<CR>
37+
nnoremap <D-1> :let g:marker_value=100<CR>
3038
call feedkeys("\<D-1>", "xt")
31-
call assert_equal(1, g:marker_value)
39+
call assert_equal(100, g:marker_value)
3240

3341
nnoremap <SwipeLeft> :let g:marker_value=1<CR>
3442
call feedkeys("\<SwipeLeft>", "xt")

0 commit comments

Comments
 (0)