diff options
| author | Gregory Anders <8965202+gpanders@users.noreply.github.com> | 2023-11-13 19:21:07 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-13 19:21:07 -0600 |
| commit | 582d7f47905d82f315dc852a9d2937cd5b655e55 (patch) | |
| tree | 2a8b82a0bb4e7079dc6c5be33f00c360e9547c6b /test/functional | |
| parent | 28f4f3c48498086307ed825d1761edb5789ca0e8 (diff) | |
| parent | 22eb2ba18336df6cd70a88f666818ee5d8ba92d2 (diff) | |
| download | rneovim-582d7f47905d82f315dc852a9d2937cd5b655e55.tar.gz rneovim-582d7f47905d82f315dc852a9d2937cd5b655e55.tar.bz2 rneovim-582d7f47905d82f315dc852a9d2937cd5b655e55.zip | |
Merge pull request #25918 from gpanders/background-color
Diffstat (limited to 'test/functional')
| -rw-r--r-- | test/functional/api/ui_spec.lua | 2 | ||||
| -rw-r--r-- | test/functional/terminal/tui_spec.lua | 6 | ||||
| -rw-r--r-- | test/functional/ui/options_spec.lua | 16 |
3 files changed, 3 insertions, 21 deletions
diff --git a/test/functional/api/ui_spec.lua b/test/functional/api/ui_spec.lua index a668d47448..6efb6726fe 100644 --- a/test/functional/api/ui_spec.lua +++ b/test/functional/api/ui_spec.lua @@ -36,8 +36,6 @@ describe('nvim_ui_attach()', function() pcall_err(meths.ui_attach, 80, 24, { term_name=true })) eq("Invalid 'term_colors': expected Integer, got Boolean", pcall_err(meths.ui_attach, 80, 24, { term_colors=true })) - eq("Invalid 'term_background': expected String, got Boolean", - pcall_err(meths.ui_attach, 80, 24, { term_background=true })) eq("Invalid 'stdin_fd': expected Integer, got String", pcall_err(meths.ui_attach, 80, 24, { stdin_fd='foo' })) eq("Invalid 'stdin_tty': expected Boolean, got String", diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua index 682eb48a27..960870fb46 100644 --- a/test/functional/terminal/tui_spec.lua +++ b/test/functional/terminal/tui_spec.lua @@ -2557,7 +2557,7 @@ describe('TUI bg color', function() | {3:-- TERMINAL --} | ]]) - feed_data('\027]11;rgb:ffff/ffff/ffff\007') + feed_data('\027]11;rgb:ffff/ffff/ffff\027\\') screen:expect{any='did OptionSet, yay!'} feed_data(':echo "new_bg=".&background\n') @@ -2610,7 +2610,7 @@ describe('TUI bg color', function() ]]) -- Send a background response with the Pt portion split. feed_data('\027]11;rgba:ffff/fff') - feed_data('f/ffff/8000\007') + feed_data('f/ffff/8000\027\\') screen:expect{any='did OptionSet, yay!'} feed_data(':echo "new_bg=".&background\n') @@ -2643,7 +2643,7 @@ describe('TUI bg color', function() | {3:-- TERMINAL --} | ]]) - feed_data('\027]11;rgba:ffff/foo/ffff/8000\007') + feed_data('\027]11;rgba:ffff/foo/ffff/8000\027\\') screen:expect_unchanged() feed_data(':echo "new_bg=".&background\n') diff --git a/test/functional/ui/options_spec.lua b/test/functional/ui/options_spec.lua index f3817856f7..6af1820430 100644 --- a/test/functional/ui/options_spec.lua +++ b/test/functional/ui/options_spec.lua @@ -210,22 +210,6 @@ describe('UI can set terminal option', function() screen = Screen.new(20,5) end) - it('term_background', function() - eq('dark', eval '&background') - - screen:attach {term_background='light'} - eq('light', eval '&background') - end) - - it("term_background but not if 'background' already set by user", function() - eq('dark', eval '&background') - command 'set background=dark' - - screen:attach {term_background='light'} - - eq('dark', eval '&background') - end) - it('term_name', function() eq('nvim', eval '&term') |