diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-05-26 11:29:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-26 11:29:56 +0200 |
commit | a92d78d201e53a4b2fb7b2f811a3f316678a8e6a (patch) | |
tree | 05dce5452ed415b18703adc0d033d261a0a47ae1 /test/functional/ui/screen_basic_spec.lua | |
parent | ad62bd471da43e3efa2f9f8981e91b9af92901c0 (diff) | |
parent | 43d66c0ebbe43f40a1f76e1635ccef6181c01317 (diff) | |
download | rneovim-a92d78d201e53a4b2fb7b2f811a3f316678a8e6a.tar.gz rneovim-a92d78d201e53a4b2fb7b2f811a3f316678a8e6a.tar.bz2 rneovim-a92d78d201e53a4b2fb7b2f811a3f316678a8e6a.zip |
Merge pull request #23583 from zeertzjq/ui-attach-title
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) |