diff options
author | Bram Moolenaar <Bram@vim.org> | 2009-09-11 15:24:31 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2009-09-11 15:24:31 +0000 |
commit | 5b7880dea208fd78b627d2aac7ac8dbfff33e556 (patch) | |
tree | 41720597788db3a9b18ce2f55691c3e2205a6f2f /src/testdir | |
parent | 86c800a1b39603ba612a4a4f6e76c64c3d022789 (diff) | |
download | vim-git-5b7880dea208fd78b627d2aac7ac8dbfff33e556.tar.gz |
updated for version 7.2-259v7.2.259
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/Makefile | 2 | ||||
-rw-r--r-- | src/testdir/test67.in | 33 | ||||
-rw-r--r-- | src/testdir/test67.ok | 10 |
3 files changed, 44 insertions, 1 deletions
diff --git a/src/testdir/Makefile b/src/testdir/Makefile index 50386ec77..8f9fd1356 100644 --- a/src/testdir/Makefile +++ b/src/testdir/Makefile @@ -22,7 +22,7 @@ SCRIPTS = test1.out test2.out test3.out test4.out test5.out test6.out \ test48.out test49.out test51.out test52.out test53.out \ test54.out test55.out test56.out test57.out test58.out \ test59.out test60.out test61.out test62.out test63.out \ - test64.out test65.out test66.out + test64.out test65.out test66.out test67.out SCRIPTS_GUI = test16.out diff --git a/src/testdir/test67.in b/src/testdir/test67.in new file mode 100644 index 000000000..08b4e3701 --- /dev/null +++ b/src/testdir/test67.in @@ -0,0 +1,33 @@ +Test that groups and patterns are tested correctly when calling exists() for +autocommands. + +STARTTEST +:so small.vim +:let results=[] +:augroup auexists +:augroup END +:call add(results, "##BufEnter: " . exists("##BufEnter")) +:call add(results, "#BufEnter: " . exists("#BufEnter")) +:au BufEnter * let g:entered=1 +:call add(results, "#BufEnter: " . exists("#BufEnter")) +:call add(results, "#auexists#BufEnter: " . exists("#auexists#BufEnter")) +:augroup auexists +:au BufEnter * let g:entered=1 +:augroup END +:call add(results, "#auexists#BufEnter: " . exists("#auexists#BufEnter")) +:call add(results, "#BufEnter#*.test: " . exists("#BufEnter#*.test")) +:au BufEnter *.test let g:entered=1 +:call add(results, "#BufEnter#*.test: " . exists("#BufEnter#*.test")) +:edit testfile.test +:call add(results, "#BufEnter#<buffer>: " . exists("#BufEnter#<buffer>")) +:au BufEnter <buffer> let g:entered=1 +:call add(results, "#BufEnter#<buffer>: " . exists("#BufEnter#<buffer>")) +:edit testfile2.test +:call add(results, "#BufEnter#<buffer>: " . exists("#BufEnter#<buffer>")) +:e test.out +:call append(0, results) +:$d +:w +:qa! +ENDTEST + diff --git a/src/testdir/test67.ok b/src/testdir/test67.ok new file mode 100644 index 000000000..51188e5af --- /dev/null +++ b/src/testdir/test67.ok @@ -0,0 +1,10 @@ +##BufEnter: 1 +#BufEnter: 0 +#BufEnter: 1 +#auexists#BufEnter: 0 +#auexists#BufEnter: 1 +#BufEnter#*.test: 0 +#BufEnter#*.test: 1 +#BufEnter#<buffer>: 0 +#BufEnter#<buffer>: 1 +#BufEnter#<buffer>: 0 |