aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/debugger_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/legacy/debugger_spec.lua')
-rw-r--r--test/functional/legacy/debugger_spec.lua46
1 files changed, 20 insertions, 26 deletions
diff --git a/test/functional/legacy/debugger_spec.lua b/test/functional/legacy/debugger_spec.lua
index e6fb81719f..7ed5e84da6 100644
--- a/test/functional/legacy/debugger_spec.lua
+++ b/test/functional/legacy/debugger_spec.lua
@@ -13,8 +13,8 @@ describe('debugger', function()
before_each(function()
screen = Screen.new(999, 10)
screen:set_default_attr_ids({
- [0] = {bold = true, foreground = Screen.colors.Blue};
- [1] = {reverse = true, bold = true};
+ [0] = { bold = true, foreground = Screen.colors.Blue },
+ [1] = { reverse = true, bold = true },
})
screen:attach()
end)
@@ -30,20 +30,16 @@ describe('debugger', function()
command(':let g:Xtest_var = 10')
command(':breakadd expr g:Xtest_var')
feed(':source %<CR>')
- screen:expect{grid=[[
+ screen:expect {
+ grid = [[
^let g:Xtest_var += 1{MATCH: *}|
- {0:~{MATCH: *}}|
- {0:~{MATCH: *}}|
- {0:~{MATCH: *}}|
- {0:~{MATCH: *}}|
- {0:~{MATCH: *}}|
- {0:~{MATCH: *}}|
- {0:~{MATCH: *}}|
- {0:~{MATCH: *}}|
+ {0:~{MATCH: *}}|*8
:source %{MATCH: *}|
- ]]}
+ ]],
+ }
feed(':source %<CR>')
- screen:expect{grid=[[
+ screen:expect {
+ grid = [[
let g:Xtest_var += 1{MATCH: *}|
{0:~{MATCH: *}}|
{1:{MATCH: *}}|
@@ -54,22 +50,19 @@ describe('debugger', function()
{MATCH:.*}XdebugBreakExpr.vim{MATCH: *}|
line 1: let g:Xtest_var += 1{MATCH: *}|
>^{MATCH: *}|
- ]]}
+ ]],
+ }
feed('cont<CR>')
- screen:expect{grid=[[
+ screen:expect {
+ grid = [[
^let g:Xtest_var += 1{MATCH: *}|
- {0:~{MATCH: *}}|
- {0:~{MATCH: *}}|
- {0:~{MATCH: *}}|
- {0:~{MATCH: *}}|
- {0:~{MATCH: *}}|
- {0:~{MATCH: *}}|
- {0:~{MATCH: *}}|
- {0:~{MATCH: *}}|
+ {0:~{MATCH: *}}|*8
{MATCH: *}|
- ]]}
+ ]],
+ }
feed(':source %<CR>')
- screen:expect{grid=[[
+ screen:expect {
+ grid = [[
let g:Xtest_var += 1{MATCH: *}|
{0:~{MATCH: *}}|
{1:{MATCH: *}}|
@@ -80,6 +73,7 @@ describe('debugger', function()
{MATCH:.*}XdebugBreakExpr.vim{MATCH: *}|
line 1: let g:Xtest_var += 1{MATCH: *}|
>^{MATCH: *}|
- ]]}
+ ]],
+ }
end)
end)