diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2016-06-08 11:26:06 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2016-08-29 10:17:31 +0200 |
commit | c41bacc67cb2c5be765f30c42889f168d5fc9d40 (patch) | |
tree | 492f19ea5dd57ec1ea980192fa153ef1325616b6 /test/functional/terminal/highlight_spec.lua | |
parent | e968d72cae57180921ad9cf24cde74fedc8b03d3 (diff) | |
download | rneovim-c41bacc67cb2c5be765f30c42889f168d5fc9d40.tar.gz rneovim-c41bacc67cb2c5be765f30c42889f168d5fc9d40.tar.bz2 rneovim-c41bacc67cb2c5be765f30c42889f168d5fc9d40.zip |
api/ui: add tests for popupmenu_external events
update screen.lua to use new style nvim_ui_attach
Diffstat (limited to 'test/functional/terminal/highlight_spec.lua')
-rw-r--r-- | test/functional/terminal/highlight_spec.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/functional/terminal/highlight_spec.lua b/test/functional/terminal/highlight_spec.lua index 95fbf2c871..3d0ff6091d 100644 --- a/test/functional/terminal/highlight_spec.lua +++ b/test/functional/terminal/highlight_spec.lua @@ -25,7 +25,7 @@ describe('terminal window highlighting', function() [10] = {reverse = true}, [11] = {background = 11}, }) - screen:attach(false) + screen:attach({rgb=false}) execute('enew | call termopen(["'..nvim_dir..'/tty-test"]) | startinsert') screen:expect([[ tty ready | @@ -127,7 +127,7 @@ describe('terminal window highlighting with custom palette', function() [8] = {background = 11}, [9] = {bold = true}, }) - screen:attach(true) + screen:attach({rgb=true}) nvim('set_var', 'terminal_color_3', '#123456') execute('enew | call termopen(["'..nvim_dir..'/tty-test"]) | startinsert') screen:expect([[ @@ -185,7 +185,7 @@ describe('synIDattr()', function() end) it('returns gui-color if RGB-capable UI is attached', function() - screen:attach(true) + screen:attach({rgb=true}) eq('#ff0000', eval('synIDattr(hlID("Normal"), "fg")')) eq('Black', eval('synIDattr(hlID("Normal"), "bg")')) eq('Salmon', eval('synIDattr(hlID("Keyword"), "fg")')) @@ -193,7 +193,7 @@ describe('synIDattr()', function() end) it('returns #RRGGBB value for fg#/bg#/sp#', function() - screen:attach(true) + screen:attach({rgb=true}) eq('#ff0000', eval('synIDattr(hlID("Normal"), "fg#")')) eq('#000000', eval('synIDattr(hlID("Normal"), "bg#")')) eq('#fa8072', eval('synIDattr(hlID("Keyword"), "fg#")')) @@ -201,7 +201,7 @@ describe('synIDattr()', function() end) it('returns color number if non-GUI', function() - screen:attach(false) + screen:attach({rgb=false}) eq('252', eval('synIDattr(hlID("Normal"), "fg")')) eq('79', eval('synIDattr(hlID("Keyword"), "fg")')) end) |