blob: 83def27c362fe069640d6a43fd40c114838b75c3 [file] [log] [blame]
Bram Moolenaarc9b4b052006-04-30 18:54:39 +00001Tests for tab pages
2
3STARTTEST
4:so small.vim
5:" Simple test for opening and closing a tab page
6:tabnew
7:let nr = tabpagenr()
8:q
9:call append(line('$'), 'tab page ' . nr)
Bram Moolenaar9d2c8c12007-09-25 16:00:00 +000010:unlet nr
Bram Moolenaarc9b4b052006-04-30 18:54:39 +000011:"
12:" Open three tab pages and use ":tabdo"
13:0tabnew
14:1tabnew
15:888tabnew
16:tabdo call append(line('$'), 'this is tab page ' . tabpagenr())
17:tabclose! 2
18:tabrewind
19:let line1 = getline('$')
20:undo
21:q
22:tablast
23:let line2 = getline('$')
24:q!
25:call append(line('$'), line1)
26:call append(line('$'), line2)
Bram Moolenaar9d2c8c12007-09-25 16:00:00 +000027:unlet line1 line2
Bram Moolenaarc9b4b052006-04-30 18:54:39 +000028:"
29:"
30:/^Results/,$w! test.out
31:qa!
32ENDTEST
33
34Results: