diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-04-25 02:17:15 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-04-26 03:41:24 +0200 |
commit | 00843902d3472ac4e74106fc06fa60e599914496 (patch) | |
tree | 6d227b71062232086a218af7086d2b31552dc69c /test/functional/ui/tabline_spec.lua | |
parent | 88023d51238698dd625c26300142d3dbe5770b73 (diff) | |
download | rneovim-00843902d3472ac4e74106fc06fa60e599914496.tar.gz rneovim-00843902d3472ac4e74106fc06fa60e599914496.tar.bz2 rneovim-00843902d3472ac4e74106fc06fa60e599914496.zip |
api/ui: externalize tabline
- Work with a bool[] array parallel to the UIWidget enum.
- Rename some functions.
- Documentation.
Diffstat (limited to 'test/functional/ui/tabline_spec.lua')
-rw-r--r-- | test/functional/ui/tabline_spec.lua | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/test/functional/ui/tabline_spec.lua b/test/functional/ui/tabline_spec.lua index 018e008e4a..c62dd0c94b 100644 --- a/test/functional/ui/tabline_spec.lua +++ b/test/functional/ui/tabline_spec.lua @@ -2,16 +2,14 @@ local helpers = require('test.functional.helpers')(after_each) local Screen = require('test.functional.ui.screen') local clear, feed, eq = helpers.clear, helpers.feed, helpers.eq -if helpers.pending_win32(pending) then return end - -describe('External tab line', function() +describe('ui/tabline', function() local screen local tabs, curtab before_each(function() clear() screen = Screen.new(25, 5) - screen:attach({rgb=true, tabline_external=true}) + screen:attach({rgb=true, ui_ext={'tabline'}}) screen:set_on_event_handler(function(name, data) if name == "tabline_update" then curtab, tabs = unpack(data) @@ -23,8 +21,8 @@ describe('External tab line', function() screen:detach() end) - describe("'tabline'", function() - it('tabline', function() + describe('externalized', function() + it('publishes UI events', function() local expected = { {1, {['name'] = '[No Name]'}}, {2, {['name'] = '[No Name]'}}, |