diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-05-22 14:32:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-22 14:32:38 +0200 |
commit | e7b3fd8ad603ba064ce9457a8866430c436c3737 (patch) | |
tree | 20c19661b5b04bf618d1b5b9e5cc39fc3a13189a /test/functional/legacy/prompt_buffer_spec.lua | |
parent | 2cab6bea09e090f825f9a677e1ec93d214621534 (diff) | |
parent | 3c1bc75447841a2cc4d0222657556aa172c91915 (diff) | |
download | rneovim-e7b3fd8ad603ba064ce9457a8866430c436c3737.tar.gz rneovim-e7b3fd8ad603ba064ce9457a8866430c436c3737.tar.bz2 rneovim-e7b3fd8ad603ba064ce9457a8866430c436c3737.zip |
Merge pull request #18681 from bfredl/uitest
fix(tests): fix some screen.lua warnings
Diffstat (limited to 'test/functional/legacy/prompt_buffer_spec.lua')
-rw-r--r-- | test/functional/legacy/prompt_buffer_spec.lua | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/test/functional/legacy/prompt_buffer_spec.lua b/test/functional/legacy/prompt_buffer_spec.lua index 47eca19de3..63338b8dba 100644 --- a/test/functional/legacy/prompt_buffer_spec.lua +++ b/test/functional/legacy/prompt_buffer_spec.lua @@ -23,7 +23,7 @@ describe('prompt buffer', function() close else call append(line("$") - 1, 'Command: "' . a:text . '"') - set nomodfied + set nomodified call timer_start(20, {id -> TimerFunc(a:text)}) endif endfunc @@ -33,7 +33,7 @@ describe('prompt buffer', function() endfunc func SwitchWindows() - call timer_start(0, {-> execute("wincmd p|wincmd p", "")}) + call timer_start(0, {-> execute("wincmd p", "")}) endfunc ]]) feed_command("set noshowmode | set laststatus=0") @@ -187,7 +187,19 @@ describe('prompt buffer', function() -- INSERT -- | ]]) feed("<C-O>:call SwitchWindows()<CR>") - poke_eventloop() + screen:expect{grid=[[ + cmd: | + ~ | + ~ | + ~ | + [Prompt] [+] | + ^other buffer | + ~ | + ~ | + ~ | + | + ]]} + feed("<C-O>:call SwitchWindows()<CR>") screen:expect([[ cmd: ^ | ~ | @@ -201,7 +213,6 @@ describe('prompt buffer', function() -- INSERT -- | ]]) feed("<Esc>") - poke_eventloop() screen:expect([[ cmd:^ | ~ | |