Mercurial > vim
comparison src/testdir/test_autocmd.vim @ 11197:7f355d8cd634 v8.0.0485
patch 8.0.0485: not all windows commands are tested
commit https://github.com/vim/vim/commit/4520d440c59034452d1450b27fcd56825c090687
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Mar 19 16:09:46 2017 +0100
patch 8.0.0485: not all windows commands are tested
Problem: Not all windows commands are tested.
Solution: Add more tests for windows commands. (Dominique Pelle,
closes #1575) Run test_autocmd separately, it interferes with
other tests. Fix tests that depended on side effects.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 19 Mar 2017 16:15:04 +0100 |
parents | 01a5f64a7a20 |
children | e08ead1d269f |
comparison
equal
deleted
inserted
replaced
11196:38c23a67011d | 11197:7f355d8cd634 |
---|---|
1 " Tests for autocommands | 1 " Tests for autocommands |
2 | |
3 set belloff=all | |
2 | 4 |
3 function! s:cleanup_buffers() abort | 5 function! s:cleanup_buffers() abort |
4 for bnr in range(1, bufnr('$')) | 6 for bnr in range(1, bufnr('$')) |
5 if bufloaded(bnr) && bufnr('%') != bnr | 7 if bufloaded(bnr) && bufnr('%') != bnr |
6 execute 'bd! ' . bnr | 8 execute 'bd! ' . bnr |
316 wincmd w | 318 wincmd w |
317 1quit | 319 1quit |
318 call assert_equal('Xanother', expand('%')) | 320 call assert_equal('Xanother', expand('%')) |
319 | 321 |
320 au! | 322 au! |
323 enew | |
324 bwipe! Xtestje1 | |
321 call delete('Xtestje1') | 325 call delete('Xtestje1') |
322 call delete('Xtestje2') | 326 call delete('Xtestje2') |
323 call delete('Xtestje3') | 327 call delete('Xtestje3') |
324 endfunc | 328 endfunc |
325 | 329 |