diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-08-21 16:08:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-21 16:08:48 +0800 |
commit | dc01d68f27a0d80da62bac690e9ca4647bc70dd9 (patch) | |
tree | be513a60ebce56c3d8bbb50f451029a4bba980f7 /test/old/testdir/test_functions.vim | |
parent | cc35352f65f823259675f84a915ee03d2423913e (diff) | |
parent | 02ca31979bed2b7e432401b23aaf7987a3f0badb (diff) | |
download | rneovim-dc01d68f27a0d80da62bac690e9ca4647bc70dd9.tar.gz rneovim-dc01d68f27a0d80da62bac690e9ca4647bc70dd9.tar.bz2 rneovim-dc01d68f27a0d80da62bac690e9ca4647bc70dd9.zip |
Merge pull request #24818 from zeertzjq/vim-8.2.0186
vim-patch:8.1.2403,8.2.{0186,0195,0310,0454,0533,2908,2910,3518,4339}
Diffstat (limited to 'test/old/testdir/test_functions.vim')
-rw-r--r-- | test/old/testdir/test_functions.vim | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/test/old/testdir/test_functions.vim b/test/old/testdir/test_functions.vim index 5981b5214b..1d713e91ce 100644 --- a/test/old/testdir/test_functions.vim +++ b/test/old/testdir/test_functions.vim @@ -2567,6 +2567,9 @@ endfunc func Test_state() CheckRunVimInTerminal + let g:test_is_flaky = 1 + + let getstate = ":echo 'state: ' .. g:state .. '; mode: ' .. g:mode\<CR>" let lines =<< trim END call setline(1, ['one', 'two', 'three']) @@ -2587,28 +2590,27 @@ func Test_state() " Using a timer callback call term_sendkeys(buf, ":call RunTimer()\<CR>") - call term_wait(buf, 50) - let getstate = ":echo 'state: ' .. g:state .. '; mode: ' .. g:mode\<CR>" + call TermWait(buf, 25) call term_sendkeys(buf, getstate) call WaitForAssert({-> assert_match('state: c; mode: n', term_getline(buf, 6))}, 1000) " Halfway a mapping call term_sendkeys(buf, ":call RunTimer()\<CR>;") - call term_wait(buf, 50) + call TermWait(buf, 25) call term_sendkeys(buf, ";") call term_sendkeys(buf, getstate) call WaitForAssert({-> assert_match('state: mSc; mode: n', term_getline(buf, 6))}, 1000) " Insert mode completion (bit slower on Mac) call term_sendkeys(buf, ":call RunTimer()\<CR>Got\<C-N>") - call term_wait(buf, 200) + call TermWait(buf, 25) call term_sendkeys(buf, "\<Esc>") call term_sendkeys(buf, getstate) call WaitForAssert({-> assert_match('state: aSc; mode: i', term_getline(buf, 6))}, 1000) " Autocommand executing call term_sendkeys(buf, ":set filetype=foobar\<CR>") - call term_wait(buf, 50) + call TermWait(buf, 25) call term_sendkeys(buf, getstate) call WaitForAssert({-> assert_match('state: xS; mode: n', term_getline(buf, 6))}, 1000) @@ -2616,7 +2618,7 @@ func Test_state() " messages scrolled call term_sendkeys(buf, ":call RunTimer()\<CR>:echo \"one\\ntwo\\nthree\"\<CR>") - call term_wait(buf, 50) + call TermWait(buf, 25) call term_sendkeys(buf, "\<CR>") call term_sendkeys(buf, getstate) call WaitForAssert({-> assert_match('state: Scs; mode: r', term_getline(buf, 6))}, 1000) |