diff options
Diffstat (limited to 'test/functional/ui/mouse_spec.lua')
| -rw-r--r-- | test/functional/ui/mouse_spec.lua | 22 | 
1 files changed, 21 insertions, 1 deletions
| diff --git a/test/functional/ui/mouse_spec.lua b/test/functional/ui/mouse_spec.lua index a741136111..7bca741ae3 100644 --- a/test/functional/ui/mouse_spec.lua +++ b/test/functional/ui/mouse_spec.lua @@ -45,13 +45,33 @@ describe('ui/mouse/input', function()    it('single left click moves cursor', function()      feed('<LeftMouse><2,1>') -    screen:expect([[ +    screen:expect{grid=[[        testing                  |        mo^use                    |        support and selection    |        {0:~                        }|                                 | +    ]], mouse_enabled=true} +    feed('<LeftMouse><0,0>') +    screen:expect([[ +      ^testing                  | +      mouse                    | +      support and selection    | +      {0:~                        }| +                               |      ]]) +  end) + +  it("in external ui works with unset 'mouse'", function() +    meths.set_option('mouse', '') +    feed('<LeftMouse><2,1>') +    screen:expect{grid=[[ +      testing                  | +      mo^use                    | +      support and selection    | +      {0:~                        }| +                               | +    ]], mouse_enabled=false}      feed('<LeftMouse><0,0>')      screen:expect([[        ^testing                  | | 
