refactor(tests): use global defaults instead of set_default_attr_ids (2)

This commit is contained in:
bfredl
2024-03-27 10:35:50 +01:00
parent 63f7b1f31e
commit b556bd1a53
30 changed files with 580 additions and 857 deletions

View File

@@ -12,10 +12,6 @@ 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 },
})
screen:attach()
end)
@@ -33,7 +29,7 @@ describe('debugger', function()
screen:expect {
grid = [[
^let g:Xtest_var += 1{MATCH: *}|
{0:~{MATCH: *}}|*8
{1:~{MATCH: *}}|*8
:source %{MATCH: *}|
]],
}
@@ -41,8 +37,8 @@ describe('debugger', function()
screen:expect {
grid = [[
let g:Xtest_var += 1{MATCH: *}|
{0:~{MATCH: *}}|
{1:{MATCH: *}}|
{1:~{MATCH: *}}|
{3:{MATCH: *}}|
Breakpoint in "{MATCH:.*}XdebugBreakExpr.vim" line 1{MATCH: *}|
Entering Debug mode. Type "cont" to continue.{MATCH: *}|
Oldval = "10"{MATCH: *}|
@@ -56,7 +52,7 @@ describe('debugger', function()
screen:expect {
grid = [[
^let g:Xtest_var += 1{MATCH: *}|
{0:~{MATCH: *}}|*8
{1:~{MATCH: *}}|*8
{MATCH: *}|
]],
}
@@ -64,8 +60,8 @@ describe('debugger', function()
screen:expect {
grid = [[
let g:Xtest_var += 1{MATCH: *}|
{0:~{MATCH: *}}|
{1:{MATCH: *}}|
{1:~{MATCH: *}}|
{3:{MATCH: *}}|
Breakpoint in "{MATCH:.*}XdebugBreakExpr.vim" line 1{MATCH: *}|
Entering Debug mode. Type "cont" to continue.{MATCH: *}|
Oldval = "11"{MATCH: *}|