Mercurial > vim
comparison src/testdir/test_tabpage.vim @ 30865:c8ebe35b2475 v9.0.0767
patch 9.0.0767: too many delete() calls in tests
Commit: https://github.com/vim/vim/commit/c4860bdd2832feb7ab054c6dc14f68abe24c2373
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Oct 15 20:52:26 2022 +0100
patch 9.0.0767: too many delete() calls in tests
Problem: Too many delete() calls in tests.
Solution: Use deferred delete where possible.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 15 Oct 2022 22:00:04 +0200 |
parents | ac908e454519 |
children | 8c9f63a518f5 |
comparison
equal
deleted
inserted
replaced
30864:51906709cb7a | 30865:c8ebe35b2475 |
---|---|
604 \ 'tabnext', | 604 \ 'tabnext', |
605 \ 'redraw!', | 605 \ 'redraw!', |
606 \ 'echo "hello\nthere"', | 606 \ 'echo "hello\nthere"', |
607 \ 'tabnext', | 607 \ 'tabnext', |
608 \ 'redraw', | 608 \ 'redraw', |
609 \ ], 'XTest_tabpage_cmdheight') | 609 \ ], 'XTest_tabpage_cmdheight', 'D') |
610 " Check that cursor line is concealed | 610 " Check that cursor line is concealed |
611 let buf = RunVimInTerminal('-S XTest_tabpage_cmdheight', {'statusoff': 3}) | 611 let buf = RunVimInTerminal('-S XTest_tabpage_cmdheight', {'statusoff': 3}) |
612 call VerifyScreenDump(buf, 'Test_tabpage_cmdheight', {}) | 612 call VerifyScreenDump(buf, 'Test_tabpage_cmdheight', {}) |
613 | 613 |
614 call StopVimInTerminal(buf) | 614 call StopVimInTerminal(buf) |
615 call delete('XTest_tabpage_cmdheight') | |
616 endfunc | 615 endfunc |
617 | 616 |
618 " Test for closing the tab page from a command window | 617 " Test for closing the tab page from a command window |
619 func Test_tabpage_close_cmdwin() | 618 func Test_tabpage_close_cmdwin() |
620 tabnew | 619 tabnew |