diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-05-11 10:48:48 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-05-26 07:46:24 +0800 |
commit | 43d66c0ebbe43f40a1f76e1635ccef6181c01317 (patch) | |
tree | 6d0125d9c570eaecb441b3a672c48edfd01fdac9 /test/functional/ui/screen_basic_spec.lua | |
parent | ee986ee0449b828ca64bf7d4c69624596aab8319 (diff) | |
download | rneovim-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.lua | 12 |
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) |