Mercurial > vim
comparison src/testdir/test_mksession.vim @ 21765:08940efa6b4e v8.2.1432
patch 8.2.1432: various inconsistencies in test files
Commit: https://github.com/vim/vim/commit/6d91bcb4d23b5c6a0be72c384beaf385e2d9d606
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 12 18:50:36 2020 +0200
patch 8.2.1432: various inconsistencies in test files
Problem: Various inconsistencies in test files.
Solution: Add modelines where they were missing. Use Check commands instead
of silently skipping over tests. Adjust indents and comments.
(Ken Takata, closes #6695)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 12 Aug 2020 19:00:08 +0200 |
parents | 068337e86133 |
children | 4ed106deb772 |
comparison
equal
deleted
inserted
replaced
21764:476b6faad407 | 21765:08940efa6b4e |
---|---|
148 source Xtest_mks_winheight.out | 148 source Xtest_mks_winheight.out |
149 call delete('Xtest_mks_winheight.out') | 149 call delete('Xtest_mks_winheight.out') |
150 endfunc | 150 endfunc |
151 | 151 |
152 func Test_mksession_rtp() | 152 func Test_mksession_rtp() |
153 if has('win32') | 153 " TODO: fix problem with backslashes on Win32 |
154 " TODO: fix problem with backslashes | 154 CheckNotMSWindows |
155 return | 155 |
156 endif | |
157 new | 156 new |
158 let _rtp=&rtp | 157 let _rtp=&rtp |
159 " Make a real long (invalid) runtimepath value, | 158 " Make a real long (invalid) runtimepath value, |
160 " that should exceed PATH_MAX (hopefully) | 159 " that should exceed PATH_MAX (hopefully) |
161 let newrtp=&rtp.',~'.repeat('/foobar', 1000) | 160 let newrtp=&rtp.',~'.repeat('/foobar', 1000) |
550 call assert_equal('', v:errmsg) | 549 call assert_equal('', v:errmsg) |
551 call delete('Xtest_mks.out') | 550 call delete('Xtest_mks.out') |
552 endfunc | 551 endfunc |
553 | 552 |
554 func Test_mksession_quote_in_filename() | 553 func Test_mksession_quote_in_filename() |
555 if !has('unix') | 554 " only Unix can handle this weird filename |
556 " only Unix can handle this weird filename | 555 CheckUnix |
557 return | 556 |
558 endif | |
559 let v:errmsg = '' | 557 let v:errmsg = '' |
560 %bwipe! | 558 %bwipe! |
561 split another | 559 split another |
562 split x'y\"z | 560 split x'y\"z |
563 mksession! Xtest_mks_quoted.out | 561 mksession! Xtest_mks_quoted.out |
719 set sessionoptions& | 717 set sessionoptions& |
720 endfunc | 718 endfunc |
721 | 719 |
722 " Test for mksession with window position | 720 " Test for mksession with window position |
723 func Test_mksession_winpos() | 721 func Test_mksession_winpos() |
724 if !has('gui_running') | 722 " Only applicable in GUI Vim |
725 " Only applicable in GUI Vim | 723 CheckGui |
726 return | 724 |
727 endif | |
728 set sessionoptions+=winpos | 725 set sessionoptions+=winpos |
729 mksession! Xtest_mks.out | 726 mksession! Xtest_mks.out |
730 let found_winpos = v:false | 727 let found_winpos = v:false |
731 let lines = readfile('Xtest_mks.out') | 728 let lines = readfile('Xtest_mks.out') |
732 for line in lines | 729 for line in lines |