annotate src/testdir/test62.in @ 1303:da0991871b02 v7.1.017

updated for version 7.1-017
author vimboss
date Thu, 28 Jun 2007 20:02:32 +0000
parents 8cd729851562
children b63792dadc23
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)
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
10 :"
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
11 :" Open three tab pages and use ":tabdo"
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
12 :0tabnew
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
13 :1tabnew
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
14 :888tabnew
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
15 :tabdo call append(line('$'), 'this is tab page ' . tabpagenr())
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
16 :tabclose! 2
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
17 :tabrewind
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
18 :let line1 = getline('$')
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
19 :undo
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
20 :q
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
21 :tablast
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
22 :let line2 = getline('$')
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
23 :q!
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
24 :call append(line('$'), line1)
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
25 :call append(line('$'), line2)
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
26 :"
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
27 :"
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
28 :/^Results/,$w! test.out
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
29 :qa!
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
30 ENDTEST
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
31
8cd729851562 updated for version 7.0g
vimboss
parents:
diff changeset
32 Results: