Mercurial > vim
view src/testdir/test_autoload.vim @ 18452:0ac9e720a56e v8.1.2220
patch 8.1.2220: :cfile does not abort like other quickfix commands
Commit: https://github.com/vim/vim/commit/6a0cc916bd3cd6c2fd88b2972c92ade225603229
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Oct 26 16:48:44 2019 +0200
patch 8.1.2220: :cfile does not abort like other quickfix commands
Problem: :cfile does not abort like other quickfix commands.
Solution: Abort when desired. Add tests for aborting. (Yegappan Lakshmanan,
closes #5121)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 26 Oct 2019 17:00:03 +0200 |
parents | 9ffec4eb8d33 |
children | b0b57d91671c |
line wrap: on
line source
" Tests for autoload set runtimepath=./sautest func Test_autoload_dict_func() let g:loaded_foo_vim = 0 let g:called_foo_bar_echo = 0 call g:foo#bar.echo() call assert_equal(1, g:loaded_foo_vim) call assert_equal(1, g:called_foo_bar_echo) eval 'bar'->g:foo#addFoo()->assert_equal('barfoo') endfunc func Test_source_autoload() let g:loaded_sourced_vim = 0 source sautest/autoload/sourced.vim call assert_equal(1, g:loaded_sourced_vim) endfunc