annotate src/testdir/test7.in @ 10841:5c0415a8b96e v8.0.0310

patch 8.0.0310: not enough testing for GUI functionality commit https://github.com/vim/vim/commit/13c724fb3a630257b736a1c91643b396fee917c1 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 5 20:54:26 2017 +0100 patch 8.0.0310: not enough testing for GUI functionality Problem: Not enough testing for GUI functionality. Solution: Add tests for v:windowid and getwinpos[xy](). (Kazunobu Kuriyama)
author Christian Brabandt <cb@256bit.org>
date Sun, 05 Feb 2017 21:00:04 +0100
parents 3fc0f57ecb91
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 Test for autocommand that changes the buffer list, when doing ":ball".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 :so small.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 /^start of
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 A1:.,/end of/w! Xxx1 " write test file Xxx1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 :sp Xxx1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 :close
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 $r2:.,/end of/w! Xxx2 " write test file Xxx2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 :sp Xxx2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 :close
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 $r3:.,/end of/w! Xxx3 " write test file Xxx3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 :sp Xxx3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 :close
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 :au BufReadPost Xxx2 bwipe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 $r4:ball " open window for all args, close Xxx2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 :.,$w! test.out " Write contents of this file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 :w >>test.out " Append contents of second window (Xxx1)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 :/^start of/,$w >>test.out " Append contents of last window (this file)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 :qa!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 start of test file Xxx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 this is a test
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 this is a test
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 end of test file Xxx