Mercurial > vim
view src/testdir/test_exists_autocmd.vim @ 13158:43bd8bad22b6 v8.0.1453
patch 8.0.1453: terminal test fails on some slow terminals
commit https://github.com/vim/vim/commit/218101442e8775bd1f05d1dda18d3946ee032dd1
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Feb 2 18:30:36 2018 +0100
patch 8.0.1453: terminal test fails on some slow terminals
Problem: Terminal test fails on some slow terminals.
Solution: Increase timeout to 10 seconds.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 02 Feb 2018 18:45:05 +0100 |
parents | 140d51d5b5c3 |
children | 08940efa6b4e |
line wrap: on
line source
" Test that groups and patterns are tested correctly when calling exists() for " autocommands. function Test_AutoCommands() let results=[] augroup auexists augroup END call assert_true(exists("##BufEnter")) call assert_false(exists("#BufEnter")) au BufEnter * let g:entered=1 call assert_true(exists("#BufEnter")) call assert_false(exists("#auexists#BufEnter")) augroup auexists au BufEnter * let g:entered=1 augroup END call assert_true(exists("#auexists#BufEnter")) call assert_false(exists("#BufEnter#*.test")) au BufEnter *.test let g:entered=1 call assert_true(exists("#BufEnter#*.test")) edit testfile.test call assert_false(exists("#BufEnter#<buffer>")) au BufEnter <buffer> let g:entered=1 call assert_true(exists("#BufEnter#<buffer>")) edit testfile2.test call assert_false(exists("#BufEnter#<buffer>")) endfunction