Mercurial > vim
annotate src/testdir/test_autoload.vim @ 16249:67e43b01497f v8.1.1129
patch 8.1.1129: when making a new screendump test have to create the file
commit https://github.com/vim/vim/commit/2d7260d66575052124b76c8b97b957319111bfef
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Apr 6 20:51:52 2019 +0200
patch 8.1.1129: when making a new screendump test have to create the file
Problem: When making a new screendump test have to create the file.
Solution: Continue creating the failed screendump, so it can be moved once
it is correct.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 06 Apr 2019 21:00:05 +0200 |
parents | 41e46caf1030 |
children | 9ffec4eb8d33 |
rev | line source |
---|---|
13002
f7b2ecaeb79c
patch 8.0.1377: cannot call a dict function in autoloaded dict
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
1 " Tests for autoload |
f7b2ecaeb79c
patch 8.0.1377: cannot call a dict function in autoloaded dict
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
2 |
f7b2ecaeb79c
patch 8.0.1377: cannot call a dict function in autoloaded dict
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
3 set runtimepath=./sautest |
f7b2ecaeb79c
patch 8.0.1377: cannot call a dict function in autoloaded dict
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
4 |
13004
41e46caf1030
patch 8.0.1378: autoload script sources itself when defining function
Christian Brabandt <cb@256bit.org>
parents:
13002
diff
changeset
|
5 func Test_autoload_dict_func() |
13002
f7b2ecaeb79c
patch 8.0.1377: cannot call a dict function in autoloaded dict
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
6 let g:loaded_foo_vim = 0 |
f7b2ecaeb79c
patch 8.0.1377: cannot call a dict function in autoloaded dict
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
7 let g:called_foo_bar_echo = 0 |
f7b2ecaeb79c
patch 8.0.1377: cannot call a dict function in autoloaded dict
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
8 call g:foo#bar.echo() |
f7b2ecaeb79c
patch 8.0.1377: cannot call a dict function in autoloaded dict
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
9 call assert_equal(1, g:loaded_foo_vim) |
f7b2ecaeb79c
patch 8.0.1377: cannot call a dict function in autoloaded dict
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
10 call assert_equal(1, g:called_foo_bar_echo) |
f7b2ecaeb79c
patch 8.0.1377: cannot call a dict function in autoloaded dict
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
11 endfunc |
13004
41e46caf1030
patch 8.0.1378: autoload script sources itself when defining function
Christian Brabandt <cb@256bit.org>
parents:
13002
diff
changeset
|
12 |
41e46caf1030
patch 8.0.1378: autoload script sources itself when defining function
Christian Brabandt <cb@256bit.org>
parents:
13002
diff
changeset
|
13 func Test_source_autoload() |
41e46caf1030
patch 8.0.1378: autoload script sources itself when defining function
Christian Brabandt <cb@256bit.org>
parents:
13002
diff
changeset
|
14 let g:loaded_sourced_vim = 0 |
41e46caf1030
patch 8.0.1378: autoload script sources itself when defining function
Christian Brabandt <cb@256bit.org>
parents:
13002
diff
changeset
|
15 source sautest/autoload/sourced.vim |
41e46caf1030
patch 8.0.1378: autoload script sources itself when defining function
Christian Brabandt <cb@256bit.org>
parents:
13002
diff
changeset
|
16 call assert_equal(1, g:loaded_sourced_vim) |
41e46caf1030
patch 8.0.1378: autoload script sources itself when defining function
Christian Brabandt <cb@256bit.org>
parents:
13002
diff
changeset
|
17 endfunc |