mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fixup: 30 col resize to scroll debug
This commit is contained in:
parent
5c3488c937
commit
471129792c
@ -7,7 +7,7 @@ describe(':debug', function()
|
||||
local screen
|
||||
before_each(function()
|
||||
clear()
|
||||
screen = Screen.new(50, 14)
|
||||
screen = Screen.new(30, 14)
|
||||
screen:set_default_attr_ids({
|
||||
[1] = {bold = true, foreground = Screen.colors.Blue1},
|
||||
[2] = {bold = true, reverse = true},
|
||||
@ -19,92 +19,92 @@ describe(':debug', function()
|
||||
it('scrolls messages correctly', function()
|
||||
feed(':echoerr bork<cr>')
|
||||
screen:expect([[
|
||||
^ |
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{3:E121: Undefined variable: bork} |
|
||||
|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{2: }|
|
||||
{3:E121: Undefined variable: bork}|
|
||||
|
|
||||
{4:Press ENTER or type command to}|
|
||||
{4: continue}^ |
|
||||
]])
|
||||
|
||||
feed(':debug echo "aa"| echo "bb"<cr>')
|
||||
screen:expect([[
|
||||
|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{2: }|
|
||||
Entering Debug mode. Type "cont" to continue. |
|
||||
cmd: echo "aa"| echo "bb" |
|
||||
>^ |
|
||||
|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{2: }|
|
||||
{3:E121: Undefined variable: bork}|
|
||||
|
|
||||
{4:Press ENTER or type command to}|
|
||||
Entering Debug mode. Type "co|
|
||||
nt" to continue. |
|
||||
cmd: echo "aa"| echo "bb" |
|
||||
>^ |
|
||||
]])
|
||||
|
||||
feed('step<cr>')
|
||||
screen:expect([[
|
||||
|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{2: }|
|
||||
Entering Debug mode. Type "cont" to continue. |
|
||||
cmd: echo "aa"| echo "bb" |
|
||||
>step |
|
||||
aa |
|
||||
cmd: echo "bb" |
|
||||
>^ |
|
||||
|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{2: }|
|
||||
{3:E121: Undefined variable: bork}|
|
||||
|
|
||||
{4:Press ENTER or type command to}|
|
||||
Entering Debug mode. Type "co|
|
||||
nt" to continue. |
|
||||
cmd: echo "aa"| echo "bb" |
|
||||
>step |
|
||||
aa |
|
||||
cmd: echo "bb" |
|
||||
>^ |
|
||||
]])
|
||||
|
||||
feed('step<cr>')
|
||||
screen:expect([[
|
||||
|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{2: }|
|
||||
Entering Debug mode. Type "cont" to continue. |
|
||||
cmd: echo "aa"| echo "bb" |
|
||||
>step |
|
||||
aa |
|
||||
cmd: echo "bb" |
|
||||
>step |
|
||||
bb |
|
||||
{4:Press ENTER or type command to continue}^ |
|
||||
{2: }|
|
||||
{3:E121: Undefined variable: bork}|
|
||||
|
|
||||
{4:Press ENTER or type command to}|
|
||||
Entering Debug mode. Type "co|
|
||||
nt" to continue. |
|
||||
cmd: echo "aa"| echo "bb" |
|
||||
>step |
|
||||
aa |
|
||||
cmd: echo "bb" |
|
||||
>step |
|
||||
bb |
|
||||
{4:Press ENTER or type command to}|
|
||||
{4: continue}^ |
|
||||
]])
|
||||
|
||||
feed('<cr>')
|
||||
screen:expect([[
|
||||
^ |
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
|
|
||||
^ |
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
|
|
||||
]])
|
||||
end)
|
||||
end)
|
||||
|
Loading…
Reference in New Issue
Block a user