annotate src/testdir/test62.in @ 1796:4589d1792c03 v7.2.094

updated for version 7.2-094
author vimboss
date Wed, 04 Feb 2009 10:20:58 +0000
parents b63792dadc23
children 6b4879aea261
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
856
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
1 Tests for tab pages
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
2
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
3 STARTTEST
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
4 :so small.vim
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
5 :" Simple test for opening and closing a tab page
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
6 :tabnew
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
7 :let nr = tabpagenr()
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
8 :q
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
9 :call append(line('$'), 'tab page ' . nr)
1405
b63792dadc23 updated for version 7.1-120
vimboss
parents: 856
diff changeset
10 :unlet nr
856
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
11 :"
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
12 :" Open three tab pages and use ":tabdo"
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
13 :0tabnew
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
14 :1tabnew
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
15 :888tabnew
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
16 :tabdo call append(line('$'), 'this is tab page ' . tabpagenr())
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
17 :tabclose! 2
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
18 :tabrewind
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
19 :let line1 = getline('$')
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
20 :undo
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
21 :q
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
22 :tablast
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
23 :let line2 = getline('$')
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
24 :q!
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
25 :call append(line('$'), line1)
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
26 :call append(line('$'), line2)
1405
b63792dadc23 updated for version 7.1-120
vimboss
parents: 856
diff changeset
27 :unlet line1 line2
856
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
28 :"
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
29 :"
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
30 :/^Results/,$w! test.out
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
31 :qa!
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
32 ENDTEST
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
33
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
34 Results: