aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/screen.lua
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2015-01-13 21:19:59 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-01-14 08:31:20 -0300
commit8596776bf68f0e95ba3ff7b5176ef62b56f37f47 (patch)
tree6b9c7e876cb29801e06f8cd97fd5e7ab7663e9fb /test/functional/ui/screen.lua
parentea771ac559054c138cda58e68daeb286f5c80e80 (diff)
downloadrneovim-8596776bf68f0e95ba3ff7b5176ef62b56f37f47.tar.gz
rneovim-8596776bf68f0e95ba3ff7b5176ef62b56f37f47.tar.bz2
rneovim-8596776bf68f0e95ba3ff7b5176ef62b56f37f47.zip
ui: Implement set_{title,icon}
Diffstat (limited to 'test/functional/ui/screen.lua')
-rw-r--r--test/functional/ui/screen.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua
index 4163d8011a..3a39cd0aa6 100644
--- a/test/functional/ui/screen.lua
+++ b/test/functional/ui/screen.lua
@@ -115,6 +115,8 @@ function Screen.new(width, height)
_bell = false,
_visual_bell = false,
_suspended = true,
+ _title = nil,
+ _icon = nil,
_attrs = {},
_cursor = {
enabled = true, row = 1, col = 1
@@ -306,6 +308,14 @@ function Screen:_handle_suspend()
self._suspended = true
end
+function Screen:_handle_set_title(title)
+ self._title = title
+end
+
+function Screen:_handle_set_icon(icon)
+ self._icon = icon
+end
+
function Screen:_clear_block(top, lines, left, columns)
for i = top, top + lines - 1 do
self:_clear_row_section(i, left, left + columns - 1)