aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNelson Yeung <nelsyeung@icloud.com>2015-05-24 21:04:51 +0100
committerFlorian Walch <florian@fwalch.com>2015-05-25 15:47:12 +0300
commit8ce22c63230589c3b185c3193e1c189b975ba7f6 (patch)
tree3fc2d29ad9b4667d7235b00c43712119c4ffd7c8 /src
parentd9f97e3026983863d70cbae670bf8277143c8434 (diff)
downloadrneovim-8ce22c63230589c3b185c3193e1c189b975ba7f6.tar.gz
rneovim-8ce22c63230589c3b185c3193e1c189b975ba7f6.tar.bz2
rneovim-8ce22c63230589c3b185c3193e1c189b975ba7f6.zip
tests: Migrate legacy test 31 #2736
Diffstat (limited to 'src')
-rw-r--r--src/nvim/testdir/Makefile2
-rw-r--r--src/nvim/testdir/test31.in75
-rw-r--r--src/nvim/testdir/test31.ok12
3 files changed, 1 insertions, 88 deletions
diff --git a/src/nvim/testdir/Makefile b/src/nvim/testdir/Makefile
index ee3eb89bd8..6ff3763fd4 100644
--- a/src/nvim/testdir/Makefile
+++ b/src/nvim/testdir/Makefile
@@ -15,7 +15,7 @@ SCRIPTS := test_autoformat_join.out \
test17.out \
test24.out \
test26.out test27.out test29.out test30.out \
- test31.out test32.out test34.out \
+ test32.out test34.out \
test36.out test37.out test39.out test40.out \
test42.out test43.out test45.out \
test46.out test47.out test48.out test49.out \
diff --git a/src/nvim/testdir/test31.in b/src/nvim/testdir/test31.in
deleted file mode 100644
index 7dc2334781..0000000000
--- a/src/nvim/testdir/test31.in
+++ /dev/null
@@ -1,75 +0,0 @@
-Test for commands that close windows and/or buffers:
-:quit
-:close
-:hide
-:only
-:sall
-:all
-:ball
-:buf
-:edit
-
-STARTTEST
-:so tiny.vim
-GA 1:$w! Xtest1
-$r2:$w! Xtest2
-$r3:$w! Xtest3
-:n! Xtest1 Xtest2
-A 1:set hidden
-:" test for working :n when hidden set; write "testtext 2"
-:n
-:w! test.out
-:" test for failing :rew when hidden not set; write "testtext 2 2"
-:set nohidden
-A 2:rew
-:w >>test.out
-:" test for working :rew when hidden set; write "testtext 1 1"
-:set hidden
-:rew
-:w >>test.out
-:" test for :all keeping a buffer when it's modified; write "testtext 1 1 1"
-:set nohidden
-A 1:sp
-:n Xtest2 Xtest3
-:all
-:1wincmd w
-:w >>test.out
-:" test abandoning changed buffer, should be unloaded even when 'hidden' set
-:" write "testtext 2 2" twice
-:set hidden
-A 1:q!
-:w >>test.out
-:unhide
-:w >>test.out
-:" test ":hide" hides anyway when 'hidden' not set; write "testtext 3"
-:set nohidden
-A 2:hide
-:w >>test.out
-:" test ":edit" failing in modified buffer when 'hidden' not set
-:" write "testtext 3 3"
-A 3:e Xtest1
-:w >>test.out
-:" test ":edit" working in modified buffer when 'hidden' set; write "testtext 1"
-:set hidden
-:e Xtest1
-:w >>test.out
-:" test ":close" not hiding when 'hidden' not set in modified buffer;
-:" write "testtext 3 3 3"
-:sp Xtest3
-:set nohidden
-A 3:close
-:w >>test.out
-:" test ":close!" does hide when 'hidden' not set in modified buffer;
-:" write "testtext 1"
-A 3:close!
-:w >>test.out
-:set nohidden
-:" test ":all!" hides changed buffer; write "testtext 2 2 2"
-:sp Xtest4
-GA 4:all!
-:1wincmd w
-:w >>test.out
-:qa!
-ENDTEST
-
-testtext
diff --git a/src/nvim/testdir/test31.ok b/src/nvim/testdir/test31.ok
deleted file mode 100644
index 185bdc768e..0000000000
--- a/src/nvim/testdir/test31.ok
+++ /dev/null
@@ -1,12 +0,0 @@
-testtext 2
-testtext 2 2
-testtext 1 1
-testtext 1 1 1
-testtext 2 2
-testtext 2 2
-testtext 3
-testtext 3 3
-testtext 1
-testtext 3 3 3
-testtext 1
-testtext 2 2 2