diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-12-09 14:12:12 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-12-10 07:51:06 -0300 |
commit | 40977e78a27ac7449f759cefa103e356bc2ca5dd (patch) | |
tree | b9e5237405815b82820d849a8090c61fc4f6d5cc /test/functional/ui/screen.lua | |
parent | b11ada1aba4c6d15128446b9669b5993ce937d11 (diff) | |
download | rneovim-40977e78a27ac7449f759cefa103e356bc2ca5dd.tar.gz rneovim-40977e78a27ac7449f759cefa103e356bc2ca5dd.tar.bz2 rneovim-40977e78a27ac7449f759cefa103e356bc2ca5dd.zip |
input: Recognize mouse events for abstract_ui
Diffstat (limited to 'test/functional/ui/screen.lua')
-rw-r--r-- | test/functional/ui/screen.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua index ff22321e4e..8e7d1ed798 100644 --- a/test/functional/ui/screen.lua +++ b/test/functional/ui/screen.lua @@ -147,17 +147,21 @@ function Screen:expect(expected, attr_ids) end function Screen:_wait(check, timeout) - local err + local err, checked = false local function notification_cb(method, args) assert(method == 'redraw') self:_redraw(args) err = check() + checked = true if not err then stop() end return true end run(nil, notification_cb, nil, timeout or 5000) + if not checked then + err = check() + end if err then error(err) end |