fixup: 30 col resize to scroll debug

This commit is contained in:
Jan Edmund Lazo
2018-12-01 01:56:22 -05:00
parent 5c3488c937
commit 471129792c

View File

@@ -7,7 +7,7 @@ describe(':debug', function()
local screen local screen
before_each(function() before_each(function()
clear() clear()
screen = Screen.new(50, 14) screen = Screen.new(30, 14)
screen:set_default_attr_ids({ screen:set_default_attr_ids({
[1] = {bold = true, foreground = Screen.colors.Blue1}, [1] = {bold = true, foreground = Screen.colors.Blue1},
[2] = {bold = true, reverse = true}, [2] = {bold = true, reverse = true},
@@ -19,7 +19,7 @@ describe(':debug', function()
it('scrolls messages correctly', function() it('scrolls messages correctly', function()
feed(':echoerr bork<cr>') feed(':echoerr bork<cr>')
screen:expect([[ screen:expect([[
^ | |
{1:~ }| {1:~ }|
{1:~ }| {1:~ }|
{1:~ }| {1:~ }|
@@ -28,11 +28,11 @@ describe(':debug', function()
{1:~ }| {1:~ }|
{1:~ }| {1:~ }|
{1:~ }| {1:~ }|
{1:~ }| {2: }|
{1:~ }| {3:E121: Undefined variable: bork}|
{1:~ }| |
{1:~ }| {4:Press ENTER or type command to}|
{3:E121: Undefined variable: bork} | {4: continue}^ |
]]) ]])
feed(':debug echo "aa"| echo "bb"<cr>') feed(':debug echo "aa"| echo "bb"<cr>')
@@ -43,12 +43,12 @@ describe(':debug', function()
{1:~ }| {1:~ }|
{1:~ }| {1:~ }|
{1:~ }| {1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
{2: }| {2: }|
Entering Debug mode. Type "cont" to continue. | {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" | cmd: echo "aa"| echo "bb" |
>^ | >^ |
]]) ]])
@@ -58,12 +58,12 @@ describe(':debug', function()
| |
{1:~ }| {1:~ }|
{1:~ }| {1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
{2: }| {2: }|
Entering Debug mode. Type "cont" to continue. | {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" | cmd: echo "aa"| echo "bb" |
>step | >step |
aa | aa |
@@ -73,20 +73,20 @@ describe(':debug', function()
feed('step<cr>') feed('step<cr>')
screen:expect([[ screen:expect([[
|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
{2: }| {2: }|
Entering Debug mode. Type "cont" to continue. | {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" | cmd: echo "aa"| echo "bb" |
>step | >step |
aa | aa |
cmd: echo "bb" | cmd: echo "bb" |
>step | >step |
bb | bb |
{4:Press ENTER or type command to continue}^ | {4:Press ENTER or type command to}|
{4: continue}^ |
]]) ]])
feed('<cr>') feed('<cr>')