summaryrefslogtreecommitdiff
path: root/src/testdir
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-08-18 23:04:48 +0200
committerBram Moolenaar <Bram@vim.org>2016-08-18 23:04:48 +0200
commit9e4d8215d386100ab660d7d11e6620fd148b605e (patch)
treedd5a4c3aab1dde5c77149165ff6e65c012ea9902 /src/testdir
parent7571d55f7dcc009a375b2124cce2c8b21f361234 (diff)
downloadvim-9e4d8215d386100ab660d7d11e6620fd148b605e.zip
patch 7.4.2228
Problem: Test files have inconsistant modelines. Solution: Don't set 'tabstop' to 2, use 'sts' and 'sw'.
Diffstat (limited to 'src/testdir')
-rw-r--r--src/testdir/README.txt5
-rw-r--r--src/testdir/test_backspace_opt.vim2
-rw-r--r--src/testdir/test_digraph.vim2
-rw-r--r--src/testdir/test_gn.vim2
-rw-r--r--src/testdir/test_help_tagjump.vim2
-rw-r--r--src/testdir/test_increment.vim2
-rw-r--r--src/testdir/test_increment_dbcs.vim2
-rw-r--r--src/testdir/test_match.vim2
-rw-r--r--src/testdir/test_regexp_latin.vim1
-rw-r--r--src/testdir/test_tagjump.vim2
-rw-r--r--src/testdir/test_timers.vim2
-rw-r--r--src/testdir/test_window_cmd.vim2
12 files changed, 13 insertions, 13 deletions
diff --git a/src/testdir/README.txt b/src/testdir/README.txt
index 534f05fd5..3b2e101c8 100644
--- a/src/testdir/README.txt
+++ b/src/testdir/README.txt
@@ -3,11 +3,12 @@ This directory contains tests for various Vim features.
If it makes sense, add a new test method to an already existing file. You may
want to separate it from other tests with comment lines.
-The numbered tests are older, we have switched to named tests.
+The numbered tests are older, we have switched to named tests. Don't add any
+more numbered tests.
And then you can choose between a new style test, which is a Vim script, or an
old style test, which uses Normal mode commands. Use a new style test if you
-can.
+can. Use an old style test when it needs to run without the +eval feature.
TO ADD A NEW STYLE TEST:
diff --git a/src/testdir/test_backspace_opt.vim b/src/testdir/test_backspace_opt.vim
index 7fbba96c6..fd81f42b6 100644
--- a/src/testdir/test_backspace_opt.vim
+++ b/src/testdir/test_backspace_opt.vim
@@ -56,4 +56,4 @@ func Test_backspace_option()
set nocompatible viminfo+=nviminfo
endfunc
-" vim: tabstop=2 shiftwidth=0 expandtab
+" vim: shiftwidth=2 sts=2 expandtab
diff --git a/src/testdir/test_digraph.vim b/src/testdir/test_digraph.vim
index 95500853f..629068030 100644
--- a/src/testdir/test_digraph.vim
+++ b/src/testdir/test_digraph.vim
@@ -458,4 +458,4 @@ func! Test_digraph_cmndline()
call assert_equal("€", s)
endfunc
-" vim: tabstop=2 shiftwidth=0 sts=-1 expandtab
+" vim: shiftwidth=2 sts=2 expandtab
diff --git a/src/testdir/test_gn.vim b/src/testdir/test_gn.vim
index 3eca99bd9..7a5cdabaa 100644
--- a/src/testdir/test_gn.vim
+++ b/src/testdir/test_gn.vim
@@ -90,4 +90,4 @@ func Test_gn_command()
sil! %d _
endfu
-" vim: tabstop=2 shiftwidth=0 expandtab
+" vim: shiftwidth=2 sts=2 expandtab
diff --git a/src/testdir/test_help_tagjump.vim b/src/testdir/test_help_tagjump.vim
index 0f14ade6b..778bd9c71 100644
--- a/src/testdir/test_help_tagjump.vim
+++ b/src/testdir/test_help_tagjump.vim
@@ -150,4 +150,4 @@ func Test_help_complete()
endtry
endfunc
-" vim: et sw=2:
+" vim: shiftwidth=2 sts=2 expandtab
diff --git a/src/testdir/test_increment.vim b/src/testdir/test_increment.vim
index e53b56971..8bfd95d81 100644
--- a/src/testdir/test_increment.vim
+++ b/src/testdir/test_increment.vim
@@ -757,4 +757,4 @@ func Test_normal_increment_03()
endfunc
-" vim: tabstop=2 shiftwidth=2 expandtab
+" vim: shiftwidth=2 sts=2 expandtab
diff --git a/src/testdir/test_increment_dbcs.vim b/src/testdir/test_increment_dbcs.vim
index e1b663293..dea405c63 100644
--- a/src/testdir/test_increment_dbcs.vim
+++ b/src/testdir/test_increment_dbcs.vim
@@ -27,4 +27,4 @@ func Test_increment_dbcs_1()
call assert_equal([0, 1, 10, 0], getpos('.'))
endfunc
-" vim: shiftwidth=2 expandtab
+" vim: shiftwidth=2 sts=2 expandtab
diff --git a/src/testdir/test_match.vim b/src/testdir/test_match.vim
index 67f3ea737..000893673 100644
--- a/src/testdir/test_match.vim
+++ b/src/testdir/test_match.vim
@@ -186,4 +186,4 @@ func Test_matchaddpos()
set hlsearch&
endfunc
-" vim: et ts=2 sw=2
+" vim: shiftwidth=2 sts=2 expandtab
diff --git a/src/testdir/test_regexp_latin.vim b/src/testdir/test_regexp_latin.vim
index ea3b2e739..b3d258e09 100644
--- a/src/testdir/test_regexp_latin.vim
+++ b/src/testdir/test_regexp_latin.vim
@@ -38,4 +38,3 @@ func Test_recursive_substitute()
call setwinvar(1, 'myvar', 1)
bwipe!
endfunc
-
diff --git a/src/testdir/test_tagjump.vim b/src/testdir/test_tagjump.vim
index 97d86e6ec..b22bde804 100644
--- a/src/testdir/test_tagjump.vim
+++ b/src/testdir/test_tagjump.vim
@@ -7,4 +7,4 @@ func Test_ptag_with_notagstack()
set tagstack&vim
endfunc
-" vim: sw=2 et
+" vim: shiftwidth=2 sts=2 expandtab
diff --git a/src/testdir/test_timers.vim b/src/testdir/test_timers.vim
index f334c1746..46777d1ea 100644
--- a/src/testdir/test_timers.vim
+++ b/src/testdir/test_timers.vim
@@ -112,4 +112,4 @@ func Test_paused()
call assert_inrange(0, 10, slept)
endfunc
-" vim: ts=2 sw=0 et
+" vim: shiftwidth=2 sts=2 expandtab
diff --git a/src/testdir/test_window_cmd.vim b/src/testdir/test_window_cmd.vim
index b7f41a711..569a78a0e 100644
--- a/src/testdir/test_window_cmd.vim
+++ b/src/testdir/test_window_cmd.vim
@@ -67,4 +67,4 @@ function Test_window_cmd_wincmd_gf()
augroup! test_window_cmd_wincmd_gf
endfunc
-" vim: sw=2 et
+" vim: shiftwidth=2 sts=2 expandtab