aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/mouse_spec.lua
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2015-01-23 23:53:21 +0100
committerThiago de Arruda <tpadilha84@gmail.com>2015-02-02 14:56:58 -0300
commitb78265e9b7aa80437cca76b3668fb1df8c5ccd5b (patch)
tree5bfd73ea22f6a928af3ab6f4f87fe25e51235bdf /test/functional/ui/mouse_spec.lua
parent97ac9f5c1de096e3ee0f273c1900aaaa176934a9 (diff)
downloadrneovim-b78265e9b7aa80437cca76b3668fb1df8c5ccd5b.tar.gz
rneovim-b78265e9b7aa80437cca76b3668fb1df8c5ccd5b.tar.bz2
rneovim-b78265e9b7aa80437cca76b3668fb1df8c5ccd5b.zip
test/ui: enable strict mode by default (and in existing tests)
Diffstat (limited to 'test/functional/ui/mouse_spec.lua')
-rw-r--r--test/functional/ui/mouse_spec.lua23
1 files changed, 14 insertions, 9 deletions
diff --git a/test/functional/ui/mouse_spec.lua b/test/functional/ui/mouse_spec.lua
index 9530e13453..77e6be45ed 100644
--- a/test/functional/ui/mouse_spec.lua
+++ b/test/functional/ui/mouse_spec.lua
@@ -8,6 +8,7 @@ describe('Mouse input', function()
setup(function()
hlgroup_colors = {
+ NonText = nvim('name_to_color', 'Blue'),
Visual = nvim('name_to_color', 'LightGrey'),
}
end)
@@ -21,8 +22,10 @@ describe('Mouse input', function()
screen = Screen.new(25, 5)
screen:attach()
screen:set_default_attr_ids({
- [1] = {background = hlgroup_colors.Visual}
+ [1] = {background = hlgroup_colors.Visual},
+ [2] = {bold = true}
})
+ screen:set_default_attr_ignore( {{bold=true, foreground=hlgroup_colors.NonText}} )
feed('itesting<cr>mouse<cr>support and selection<esc>')
screen:expect([[
testing |
@@ -72,7 +75,7 @@ describe('Mouse input', function()
mo{1:us}^ |
support and selection |
~ |
- -- VISUAL -- |
+ {2:-- VISUAL --} |
]])
feed('<LeftDrag><2,2>')
screen:expect([[
@@ -80,7 +83,7 @@ describe('Mouse input', function()
mo{1:use } |
{1:su}^port and selection |
~ |
- -- VISUAL -- |
+ {2:-- VISUAL --} |
]])
feed('<LeftDrag><0,0>')
screen:expect([[
@@ -88,7 +91,7 @@ describe('Mouse input', function()
{1:mou}se |
support and selection |
~ |
- -- VISUAL -- |
+ {2:-- VISUAL --} |
]])
end)
@@ -99,7 +102,7 @@ describe('Mouse input', function()
mouse |
{1:suppor}^ and selection |
~ |
- -- VISUAL -- |
+ {2:-- VISUAL --} |
]])
end)
@@ -110,7 +113,7 @@ describe('Mouse input', function()
mouse |
{1:su}^{1:port and selection } |
~ |
- -- VISUAL LINE -- |
+ {2:-- VISUAL LINE --} |
]])
end)
@@ -121,7 +124,7 @@ describe('Mouse input', function()
mouse |
su^port and selection |
~ |
- -- VISUAL BLOCK -- |
+ {2:-- VISUAL BLOCK --} |
]])
end)
@@ -140,7 +143,7 @@ describe('Mouse input', function()
{1:mouse } |
{1:su}^port and selection |
~ |
- -- VISUAL -- |
+ {2:-- VISUAL --} |
]])
end)
@@ -153,7 +156,7 @@ describe('Mouse input', function()
ing |
Press ENTER or type comma|
nd to continue^ |
- ]])
+ ]],nil,true)
feed('<cr>')
end)
@@ -171,6 +174,8 @@ describe('Mouse input', function()
]])
screen:try_resize(53, 14)
execute('sp', 'vsp')
+ screen:set_default_attr_ignore( {{bold=true, foreground=hlgroup_colors.NonText},
+ {reverse=true}, {bold=true, reverse=true}} )
screen:expect([[
lines |lines |
to |to |