diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-05-18 12:57:04 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-18 12:57:04 +0800 |
commit | 6e414b698cbcc4f1e42564febad030d1a0a52230 (patch) | |
tree | 71d6d12f3b06ddf955ac4bd804135a5691fd70d1 /test/functional/terminal/scrollback_spec.lua | |
parent | b70856009dadacddd8eb95c7cd462c86b1c13209 (diff) | |
download | rneovim-6e414b698cbcc4f1e42564febad030d1a0a52230.tar.gz rneovim-6e414b698cbcc4f1e42564febad030d1a0a52230.tar.bz2 rneovim-6e414b698cbcc4f1e42564febad030d1a0a52230.zip |
test: unskip tests on Windows (#18600)
Remove the command('qall!') from mksession_spec.lua because it prevents
helpers.rmdir() from retrying.
Allow extra trailing spaces when matching terminal lines.
Diffstat (limited to 'test/functional/terminal/scrollback_spec.lua')
-rw-r--r-- | test/functional/terminal/scrollback_spec.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/functional/terminal/scrollback_spec.lua b/test/functional/terminal/scrollback_spec.lua index d1cfc7e91b..34fcb6cab9 100644 --- a/test/functional/terminal/scrollback_spec.lua +++ b/test/functional/terminal/scrollback_spec.lua @@ -6,6 +6,7 @@ local feed, nvim_dir, feed_command = helpers.feed, helpers.nvim_dir, helpers.fee local iswin = helpers.iswin local eval = helpers.eval local command = helpers.command +local matches = helpers.matches local poke_eventloop = helpers.poke_eventloop local retry = helpers.retry local curbufmeths = helpers.curbufmeths @@ -460,8 +461,8 @@ describe("'scrollback' option", function() expect_lines(58) -- Verify off-screen state - eq((iswin() and '36: line' or '35: line'), eval("getline(line('w0') - 1)")) - eq((iswin() and '27: line' or '26: line'), eval("getline(line('w0') - 10)")) + matches((iswin() and '^36: line[ ]*$' or '^35: line[ ]*$'), eval("getline(line('w0') - 1)")) + matches((iswin() and '^27: line[ ]*$' or '^26: line[ ]*$'), eval("getline(line('w0') - 10)")) end) it('defaults to 10000 in :terminal buffers', function() |