diff options
Diffstat (limited to 'test/functional/legacy/matchparen_spec.lua')
-rw-r--r-- | test/functional/legacy/matchparen_spec.lua | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/test/functional/legacy/matchparen_spec.lua b/test/functional/legacy/matchparen_spec.lua index 22d9247698..b03107deb0 100644 --- a/test/functional/legacy/matchparen_spec.lua +++ b/test/functional/legacy/matchparen_spec.lua @@ -13,8 +13,8 @@ describe('matchparen', function() local screen = Screen.new(30, 7) screen:attach() screen:set_default_attr_ids({ - [1] = {bold = true}, - [2] = {background = Screen.colors.LightGrey}, + [1] = { bold = true }, + [2] = { background = Screen.colors.LightGrey, foreground = Screen.colors.Black }, }) exec([[ @@ -40,23 +40,19 @@ describe('matchparen', function() it('matchparen highlight is cleared when switching buffer', function() local screen = Screen.new(20, 5) screen:set_default_attr_ids({ - [0] = {bold = true, foreground = Screen.colors.Blue}, - [1] = {background = Screen.colors.Cyan}, + [0] = { bold = true, foreground = Screen.colors.Blue }, + [1] = { background = Screen.colors.Cyan }, }) screen:attach() local screen1 = [[ {1:^()} | - {0:~ }| - {0:~ }| - {0:~ }| + {0:~ }|*3 | ]] local screen2 = [[ ^aa | - {0:~ }| - {0:~ }| - {0:~ }| + {0:~ }|*3 | ]] @@ -86,11 +82,11 @@ describe('matchparen', function() local screen = Screen.new(30, 9) screen:attach() screen:set_default_attr_ids({ - [0] = {bold = true, foreground = Screen.colors.Blue}; - [1] = {background = Screen.colors.Plum1}; - [2] = {background = Screen.colors.Grey}; - [3] = {bold = true}; - [4] = {bold = true, foreground = Screen.colors.SeaGreen}; + [0] = { bold = true, foreground = Screen.colors.Blue }, + [1] = { background = Screen.colors.Plum1 }, + [2] = { background = Screen.colors.Grey }, + [3] = { bold = true }, + [4] = { bold = true, foreground = Screen.colors.SeaGreen }, }) exec([[ @@ -101,7 +97,8 @@ describe('matchparen', function() ]]) feed('i<C-X><C-N><C-N>') - screen:expect{grid=[[ + screen:expect { + grid = [[ aa | aaa | aaaa | @@ -111,6 +108,7 @@ describe('matchparen', function() {1: aaaa }{0: }| {0:~ }| {3:-- }{4:match 2 of 3} | - ]]} + ]], + } end) end) |