mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 15:21:47 +00:00
refactor(tests): use global defaults instead of set_default_attr_ids (2)
This commit is contained in:
@@ -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: *}|
|
||||
|
Reference in New Issue
Block a user