aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/highlight_spec.lua
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2015-03-05 10:07:55 +0100
committerThiago de Arruda <tpadilha84@gmail.com>2015-03-09 08:01:49 -0300
commita7aeda8c7a3b2c9854d40c1c9278fd67d94aaf3d (patch)
treec75bf741aa9ac092eb70739f53f36f94c0cb8dda /test/functional/ui/highlight_spec.lua
parent638452da2a5650dcee3eefa84f037d2920abbb76 (diff)
downloadrneovim-a7aeda8c7a3b2c9854d40c1c9278fd67d94aaf3d.tar.gz
rneovim-a7aeda8c7a3b2c9854d40c1c9278fd67d94aaf3d.tar.bz2
rneovim-a7aeda8c7a3b2c9854d40c1c9278fd67d94aaf3d.zip
tests/ui: Also test character at cursor
Diffstat (limited to 'test/functional/ui/highlight_spec.lua')
-rw-r--r--test/functional/ui/highlight_spec.lua16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/functional/ui/highlight_spec.lua b/test/functional/ui/highlight_spec.lua
index 52ab3cb5bf..33a53ef201 100644
--- a/test/functional/ui/highlight_spec.lua
+++ b/test/functional/ui/highlight_spec.lua
@@ -54,7 +54,7 @@ describe('Default highlight groups', function()
})
execute('sp', 'vsp', 'vsp')
screen:expect([[
- ^ {2:|} {2:|} |
+ ^ {2:|} {2:|} |
~ {2:|}~ {2:|}~ |
~ {2:|}~ {2:|}~ |
~ {2:|}~ {2:|}~ |
@@ -79,7 +79,7 @@ describe('Default highlight groups', function()
~ {2:|}~ {2:|}~ |
~ {2:|}~ {2:|}~ |
{2:[No Name] [No Name] [No Name] }|
- ^ |
+ ^ |
~ |
~ |
~ |
@@ -92,7 +92,7 @@ describe('Default highlight groups', function()
-- (upstream vim has the same behavior)
feed('<c-w>k<c-w>l')
screen:expect([[
- {2:|}^ {2:|} |
+ {2:|}^ {2:|} |
~ {2:|}~ {2:|}~ |
~ {2:|}~ {2:|}~ |
~ {2:|}~ {2:|}~ |
@@ -109,7 +109,7 @@ describe('Default highlight groups', function()
]])
feed('<c-w>l')
screen:expect([[
- {2:|} {2:|}^ |
+ {2:|} {2:|}^ |
~ {2:|}~ {2:|}~ |
~ {2:|}~ {2:|}~ |
~ {2:|}~ {2:|}~ |
@@ -126,7 +126,7 @@ describe('Default highlight groups', function()
]])
feed('<c-w>h<c-w>h')
screen:expect([[
- ^ {2:|} {2:|} |
+ ^ {2:|} {2:|} |
~ {2:|}~ {2:|}~ |
~ {2:|}~ {2:|}~ |
~ {2:|}~ {2:|}~ |
@@ -146,7 +146,7 @@ describe('Default highlight groups', function()
it('insert mode text', function()
feed('i')
screen:expect([[
- ^ |
+ ^ |
~ |
~ |
~ |
@@ -165,7 +165,7 @@ describe('Default highlight groups', function()
it('end of file markers', function()
screen:expect([[
- ^ |
+ ^ |
{1:~ }|
{1:~ }|
{1:~ }|
@@ -198,7 +198,7 @@ describe('Default highlight groups', function()
~ |
:ls |
1 %a "[No Name]" line 1 |
- {1:Press ENTER or type command to continue}^ |
+ {1:Press ENTER or type command to continue}^ |
]], {[1] = {bold = true, foreground = hlgroup_colors.Question}})
feed('<cr>') -- skip the "Press ENTER..." state or tests will hang
end)