diff options
| author | Björn Linse <bjorn.linse@gmail.com> | 2016-08-14 22:57:37 +0200 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-08-14 22:57:37 +0200 | 
| commit | e57988a9fb20067e474dda038943ec7573b47415 (patch) | |
| tree | 4f7ebcf0702e188aa124b56694c1f62879dc663b /test/functional/terminal/cursor_spec.lua | |
| parent | 884b37fd2adda17fbcc2392ae871e6999b758895 (diff) | |
| parent | 725074aafcb0b2b70fc798aec84a5ca9c2233716 (diff) | |
| download | rneovim-e57988a9fb20067e474dda038943ec7573b47415.tar.gz rneovim-e57988a9fb20067e474dda038943ec7573b47415.tar.bz2 rneovim-e57988a9fb20067e474dda038943ec7573b47415.zip | |
Merge pull request #5197 from bfredl/screenfix
cleanup of screen tests: remove unnecessary hl_group and ignores of highlights
Diffstat (limited to 'test/functional/terminal/cursor_spec.lua')
| -rw-r--r-- | test/functional/terminal/cursor_spec.lua | 30 | 
1 files changed, 12 insertions, 18 deletions
| diff --git a/test/functional/terminal/cursor_spec.lua b/test/functional/terminal/cursor_spec.lua index 461ddd0ec7..1557868473 100644 --- a/test/functional/terminal/cursor_spec.lua +++ b/test/functional/terminal/cursor_spec.lua @@ -25,7 +25,7 @@ describe('terminal cursor', function()                                                          |                                                          |                                                          | -      -- TERMINAL --                                    | +      {3:-- TERMINAL --}                                    |      ]])    end) @@ -49,12 +49,12 @@ describe('terminal cursor', function()      it('is positioned correctly when unfocused', function()        screen:expect([[ -          1 tty ready                                     | -          2 {2: }                                             | -          3                                               | -          4                                               | -          5                                               | -          6 ^                                              | +        {7:  1 }tty ready                                     | +        {7:  2 }{2: }                                             | +        {7:  3 }                                              | +        {7:  4 }                                              | +        {7:  5 }                                              | +        {7:  6 }^                                              |          :set number                                       |        ]])      end) @@ -83,7 +83,7 @@ describe('terminal cursor', function()                                                            |                                                            |                                                            | -        -- TERMINAL --                                    | +        {3:-- TERMINAL --}                                    |        ]])        show_cursor()        screen:expect([[ @@ -93,7 +93,7 @@ describe('terminal cursor', function()                                                            |                                                            |                                                            | -        -- TERMINAL --                                    | +        {3:-- TERMINAL --}                                    |        ]])        -- same for when the terminal is unfocused        feed('<c-\\><c-n>') @@ -132,14 +132,8 @@ describe('cursor with customized highlighting', function()      screen = Screen.new(50, 7)      screen:set_default_attr_ids({        [1] = {foreground = 45, background = 46}, -      [2] = {foreground = 55, background = 56} -    }) -    screen:set_default_attr_ignore({ -      [1] = {bold = true}, -      [2] = {foreground = 12}, -      [3] = {bold = true, reverse = true}, -      [5] = {background = 11}, -      [6] = {foreground = 130}, +      [2] = {foreground = 55, background = 56}, +      [3] = {bold = true},      })      screen:attach(false)      execute('call termopen(["'..nvim_dir..'/tty-test"]) | startinsert') @@ -153,7 +147,7 @@ describe('cursor with customized highlighting', function()                                                          |                                                          |                                                          | -      -- TERMINAL --                                    | +      {3:-- TERMINAL --}                                    |      ]])      feed('<c-\\><c-n>')      screen:expect([[ | 
