Mercurial > vim
comparison src/testdir/test_filetype.vim @ 12688:a6a935b3270e v8.0.1222
patch 8.0.1222: test functions interfere with each other
commit https://github.com/vim/vim/commit/ce11de87e26e1420703242f8e07b4fd69c4032ba
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Oct 26 22:00:00 2017 +0200
patch 8.0.1222: test functions interfere with each other
Problem: Test functions interfere with each other.
Solution: Cleanup tab pages, windows and buffers. Reset option.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 26 Oct 2017 22:15:04 +0200 |
parents | d5710baf5cf7 |
children | 41b7a660ed2a |
comparison
equal
deleted
inserted
replaced
12687:cd09b5cfc0b3 | 12688:a6a935b3270e |
---|---|
546 filetype on | 546 filetype on |
547 for [ft, files] in items(s:script_checks) | 547 for [ft, files] in items(s:script_checks) |
548 for file in files | 548 for file in files |
549 call writefile(file, 'Xtest') | 549 call writefile(file, 'Xtest') |
550 split Xtest | 550 split Xtest |
551 call assert_equal(ft, &filetype) | 551 call assert_equal(ft, &filetype, 'for text: ' . string(file)) |
552 bwipe! | 552 bwipe! |
553 endfor | 553 endfor |
554 endfor | 554 endfor |
555 call delete('Xtest') | 555 call delete('Xtest') |
556 filetype off | 556 filetype off |