diff options
author | bfredl <bjorn.linse@gmail.com> | 2025-02-24 10:18:37 +0100 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2025-03-04 12:32:22 +0100 |
commit | 90a63d242ab0c143ef7f78c78b2adfc8cfbcbbdf (patch) | |
tree | d1b78e42ad6fa76e84a422a573e88ec80574b35c /test/functional/legacy/breakindent_spec.lua | |
parent | 47cfe901d739149f88b6f917fc1f310727700b40 (diff) | |
download | rneovim-90a63d242ab0c143ef7f78c78b2adfc8cfbcbbdf.tar.gz rneovim-90a63d242ab0c143ef7f78c78b2adfc8cfbcbbdf.tar.bz2 rneovim-90a63d242ab0c143ef7f78c78b2adfc8cfbcbbdf.zip |
refactor(tests): use new-style highlight spec in legacy/
Diffstat (limited to 'test/functional/legacy/breakindent_spec.lua')
-rw-r--r-- | test/functional/legacy/breakindent_spec.lua | 33 |
1 files changed, 14 insertions, 19 deletions
diff --git a/test/functional/legacy/breakindent_spec.lua b/test/functional/legacy/breakindent_spec.lua index db27e19e50..42d28b1231 100644 --- a/test/functional/legacy/breakindent_spec.lua +++ b/test/functional/legacy/breakindent_spec.lua @@ -12,11 +12,6 @@ describe('breakindent', function() -- oldtest: Test_cursor_position_with_showbreak() it('cursor shown at correct position with showbreak', function() local screen = Screen.new(75, 6) - screen:set_default_attr_ids({ - [0] = { bold = true, foreground = Screen.colors.Blue }, -- NonText - [1] = { background = Screen.colors.Grey, foreground = Screen.colors.DarkBlue }, -- SignColumn - [2] = { bold = true }, -- ModeMsg - }) exec([[ set listchars=eol:$ let &signcolumn = 'yes' @@ -29,10 +24,10 @@ describe('breakindent', function() feed('AX') screen:expect([[ - {1: }xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxX| - {1: }^second line | - {0:~ }|*3 - {2:-- INSERT --} | + {7: }xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxX| + {7: }^second line | + {1:~ }|*3 + {5:-- INSERT --} | ]]) -- No line wraps, so changing 'showbreak' should lead to the same screen. command('setlocal showbreak=+') @@ -43,19 +38,19 @@ describe('breakindent', function() -- The first line now wraps because of "eol" in 'listchars'. command('setlocal list') screen:expect([[ - {1: }xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxX| - {1: } {0:+^$} | - {1: }second line{0:$} | - {0:~ }|*2 - {2:-- INSERT --} | + {7: }xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxX| + {7: } {1:+^$} | + {7: }second line{1:$} | + {1:~ }|*2 + {5:-- INSERT --} | ]]) command('setlocal nobreakindent') screen:expect([[ - {1: }xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxX| - {1: }{0:+^$} | - {1: }second line{0:$} | - {0:~ }|*2 - {2:-- INSERT --} | + {7: }xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxX| + {7: }{1:+^$} | + {7: }second line{1:$} | + {1:~ }|*2 + {5:-- INSERT --} | ]]) end) |