comparison src/testdir/test_window_cmd.vim @ 18767:068337e86133 v8.1.2373

patch 8.1.2373: cannot build with +popupwin but without +quickfix Commit: https://github.com/vim/vim/commit/5a4c3082d7ab51b3d448a91578479c96c1ab0ad3 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Dec 1 15:23:11 2019 +0100 patch 8.1.2373: cannot build with +popupwin but without +quickfix Problem: Cannot build with +popupwin but without +quickfix. (John Marriott) Solution: Adjust #ifdefs.
author Bram Moolenaar <Bram@vim.org>
date Sun, 01 Dec 2019 15:30:04 +0100
parents 783f796a1426
children ef3633932b0c
comparison
equal deleted inserted replaced
18766:3cc0ddf2abd0 18767:068337e86133
173 173
174 %bw! 174 %bw!
175 endfunc 175 endfunc
176 176
177 func Test_window_preview() 177 func Test_window_preview()
178 CheckFeature quickfix
179
178 " Open a preview window 180 " Open a preview window
179 pedit Xa 181 pedit Xa
180 call assert_equal(2, winnr('$')) 182 call assert_equal(2, winnr('$'))
181 call assert_equal(0, &previewwindow) 183 call assert_equal(0, &previewwindow)
182 184
191 193
192 call assert_fails('wincmd P', 'E441:') 194 call assert_fails('wincmd P', 'E441:')
193 endfunc 195 endfunc
194 196
195 func Test_window_preview_from_help() 197 func Test_window_preview_from_help()
198 CheckFeature quickfix
199
196 filetype on 200 filetype on
197 call writefile(['/* some C code */'], 'Xpreview.c') 201 call writefile(['/* some C code */'], 'Xpreview.c')
198 help 202 help
199 pedit Xpreview.c 203 pedit Xpreview.c
200 wincmd P 204 wincmd P
436 only 440 only
437 set equalalways& 441 set equalalways&
438 endfunc 442 endfunc
439 443
440 func Test_win_screenpos() 444 func Test_win_screenpos()
445 CheckFeature quickfix
446
441 call assert_equal(1, winnr('$')) 447 call assert_equal(1, winnr('$'))
442 split 448 split
443 vsplit 449 vsplit
444 10wincmd _ 450 10wincmd _
445 30wincmd | 451 30wincmd |
449 call assert_equal([0, 0], win_screenpos(4)) 455 call assert_equal([0, 0], win_screenpos(4))
450 only 456 only
451 endfunc 457 endfunc
452 458
453 func Test_window_jump_tag() 459 func Test_window_jump_tag()
460 CheckFeature quickfix
461
454 help 462 help
455 /iccf 463 /iccf
456 call assert_match('^|iccf|', getline('.')) 464 call assert_match('^|iccf|', getline('.'))
457 call assert_equal(2, winnr('$')) 465 call assert_equal(2, winnr('$'))
458 2wincmd } 466 2wincmd }
885 893
886 bwipe! 894 bwipe!
887 endfunc 895 endfunc
888 896
889 func Test_win_splitmove() 897 func Test_win_splitmove()
898 CheckFeature quickfix
899
890 edit a 900 edit a
891 leftabove split b 901 leftabove split b
892 leftabove vsplit c 902 leftabove vsplit c
893 leftabove split d 903 leftabove split d
894 call assert_equal(0, win_splitmove(winnr(), winnr('l'))) 904 call assert_equal(0, win_splitmove(winnr(), winnr('l')))