diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-10-13 23:43:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-13 23:43:06 +0200 |
commit | ba082885d23fe4e1de94474fb616428bd6e00d6e (patch) | |
tree | 4574533679c6ac166b7424a8f0c4fb4c735aba01 /test/functional/ui/mouse_spec.lua | |
parent | 5cf6beb22178a844bc1b6e75e744eb04508b865c (diff) | |
parent | cc0d7252304f10ed6cdc0bc58789100093f7d021 (diff) | |
download | rneovim-ba082885d23fe4e1de94474fb616428bd6e00d6e.tar.gz rneovim-ba082885d23fe4e1de94474fb616428bd6e00d6e.tar.bz2 rneovim-ba082885d23fe4e1de94474fb616428bd6e00d6e.zip |
Merge pull request #11206 from bfredl/testattr
tests/refactor: make screen.ui use "linegrid" representation internally
Diffstat (limited to 'test/functional/ui/mouse_spec.lua')
-rw-r--r-- | test/functional/ui/mouse_spec.lua | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/test/functional/ui/mouse_spec.lua b/test/functional/ui/mouse_spec.lua index 440bae58e0..7840ba9167 100644 --- a/test/functional/ui/mouse_spec.lua +++ b/test/functional/ui/mouse_spec.lua @@ -26,6 +26,8 @@ describe('ui/mouse/input', function() }, [4] = {reverse = true}, [5] = {bold = true, reverse = true}, + [6] = {foreground = Screen.colors.Grey100, background = Screen.colors.Red}, + [7] = {bold = true, foreground = Screen.colors.SeaGreen4}, }) command("set display-=msgsep") feed('itesting<cr>mouse<cr>support and selection<esc>') @@ -38,10 +40,6 @@ describe('ui/mouse/input', function() ]]) end) - after_each(function() - screen:detach() - end) - it('single left click moves cursor', function() feed('<LeftMouse><2,1>') screen:expect([[ @@ -620,12 +618,12 @@ describe('ui/mouse/input', function() meths.set_option('tags', './non-existent-tags-file') feed('<C-LeftMouse><0,0>') screen:expect([[ - E433: No tags file | - E426: tag not found: test| - ing | - Press ENTER or type comma| - nd to continue^ | - ]],nil,true) + {6:E433: No tags file} | + {6:E426: tag not found: test}| + {6:ing} | + {7:Press ENTER or type comma}| + {7:nd to continue}^ | + ]]) feed('<cr>') end) |