aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/screen_basic_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-05-11 10:48:48 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-05-26 07:46:24 +0800
commit43d66c0ebbe43f40a1f76e1635ccef6181c01317 (patch)
tree6d0125d9c570eaecb441b3a672c48edfd01fdac9 /test/functional/ui/screen_basic_spec.lua
parentee986ee0449b828ca64bf7d4c69624596aab8319 (diff)
downloadrneovim-43d66c0ebbe43f40a1f76e1635ccef6181c01317.tar.gz
rneovim-43d66c0ebbe43f40a1f76e1635ccef6181c01317.tar.bz2
rneovim-43d66c0ebbe43f40a1f76e1635ccef6181c01317.zip
fix(ui-ext): send title to newly-attached UI
Diffstat (limited to 'test/functional/ui/screen_basic_spec.lua')
-rw-r--r--test/functional/ui/screen_basic_spec.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/functional/ui/screen_basic_spec.lua b/test/functional/ui/screen_basic_spec.lua
index b31e40d4ab..67e3b774b4 100644
--- a/test/functional/ui/screen_basic_spec.lua
+++ b/test/functional/ui/screen_basic_spec.lua
@@ -117,6 +117,12 @@ local function screen_tests(linegrid)
screen:expect(function()
eq(expected, screen.title)
end)
+ screen:detach()
+ screen.title = nil
+ screen:attach()
+ screen:expect(function()
+ eq(expected, screen.title)
+ end)
end)
end)
@@ -128,6 +134,12 @@ local function screen_tests(linegrid)
screen:expect(function()
eq(expected, screen.icon)
end)
+ screen:detach()
+ screen.icon = nil
+ screen:attach()
+ screen:expect(function()
+ eq(expected, screen.icon)
+ end)
end)
end)