comparison src/testdir/test_popup.vim @ 12602:9359ed49d375 v8.0.1179

patch 8.0.1179: Test_popup_and_window_resize() does not always pass commit https://github.com/vim/vim/commit/631820536e4084e01bf990f9314ec385b60b21d7 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Oct 7 20:03:23 2017 +0200 patch 8.0.1179: Test_popup_and_window_resize() does not always pass Problem: Test_popup_and_window_resize() does not always pass. Solution: Do not use $VIMPROG, pass the Vim executable in the vimcmd file. (Ozaki Kiichi, closes #2186)
author Christian Brabandt <cb@256bit.org>
date Sat, 07 Oct 2017 20:15:04 +0200
parents 0d29a806e6d1
children 1fad9675d8fd
comparison
equal deleted inserted replaced
12601:f6be693907fa 12602:9359ed49d375
641 endif 641 endif
642 let h = winheight(0) 642 let h = winheight(0)
643 if h < 15 643 if h < 15
644 return 644 return
645 endif 645 endif
646 let g:buf = term_start([$VIMPROG, '--clean', '-c', 'set noswapfile'], {'term_rows': h / 3}) 646 let g:buf = term_start([GetVimProg(), '--clean', '-c', 'set noswapfile'], {'term_rows': h / 3})
647 call term_sendkeys(g:buf, (h / 3 - 1)."o\<esc>G") 647 call term_sendkeys(g:buf, (h / 3 - 1)."o\<esc>")
648 call term_sendkeys(g:buf, "i\<c-x>")
649 call term_wait(g:buf, 200) 648 call term_wait(g:buf, 200)
649 call term_sendkeys(g:buf, "Gi\<c-x>")
650 call term_sendkeys(g:buf, "\<c-v>") 650 call term_sendkeys(g:buf, "\<c-v>")
651 call term_wait(g:buf, 100) 651 call term_wait(g:buf, 100)
652 " popup first entry "!" must be at the top 652 " popup first entry "!" must be at the top
653 call WaitFor('term_getline(g:buf, 1) =~ "^!"') 653 call WaitFor('term_getline(g:buf, 1) =~ "^!"')
654 call assert_match('^!\s*$', term_getline(g:buf, 1)) 654 call assert_match('^!\s*$', term_getline(g:buf, 1))