diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-05-17 21:06:27 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-17 21:06:27 +0800 |
commit | c9f47fca8b896ecb304294cce675fedac9ab926c (patch) | |
tree | 65c140be15790a17830f91d964abd551b0b118e6 /test | |
parent | 67176c3f20cf8f0b6c7d7c4d75093ea6b7c00b74 (diff) | |
download | rneovim-c9f47fca8b896ecb304294cce675fedac9ab926c.tar.gz rneovim-c9f47fca8b896ecb304294cce675fedac9ab926c.tar.bz2 rneovim-c9f47fca8b896ecb304294cce675fedac9ab926c.zip |
fix(messages): ensure msg_grid is at top at more prompt (#23584)
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/terminal/tui_spec.lua | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua index b69867af89..352009a1b1 100644 --- a/test/functional/terminal/tui_spec.lua +++ b/test/functional/terminal/tui_spec.lua @@ -112,7 +112,7 @@ describe('TUI', function() child_session:request("nvim_exec", [[ set more func! ManyErr() - for i in range(10) + for i in range(20) echoerr "FAIL ".i endfor endfunc @@ -128,7 +128,35 @@ describe('TUI', function() {3:-- TERMINAL --} | ]]} - feed_data('d') + screen:try_resize(50,10) + screen:expect{grid=[[ + :call ManyErr() | + {8:Error detected while processing function ManyErr:} | + {11:line 2:} | + {8:FAIL 0} | + {8:FAIL 1} | + {8:FAIL 2} | + | + | + {10:-- More --}{1: } | + {3:-- TERMINAL --} | + ]]} + + feed_data('j') + screen:expect{grid=[[ + {8:Error detected while processing function ManyErr:} | + {11:line 2:} | + {8:FAIL 0} | + {8:FAIL 1} | + {8:FAIL 2} | + {8:FAIL 3} | + {8:FAIL 4} | + {8:FAIL 5} | + {10:-- More --}{1: } | + {3:-- TERMINAL --} | + ]]} + + screen:try_resize(50,7) screen:expect{grid=[[ {8:FAIL 1} | {8:FAIL 2} | |