]> granicus.if.org Git - vim/commitdiff
Add the missing test files.
authorBram Moolenaar <Bram@vim.org>
Tue, 21 Oct 2014 20:36:31 +0000 (22:36 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 21 Oct 2014 20:36:31 +0000 (22:36 +0200)
src/testdir/test_signs.in [new file with mode: 0644]
src/testdir/test_signs.ok [new file with mode: 0644]

diff --git a/src/testdir/test_signs.in b/src/testdir/test_signs.in
new file mode 100644 (file)
index 0000000..a2f15e9
--- /dev/null
@@ -0,0 +1,22 @@
+Tests for signs
+STARTTEST
+:so small.vim
+:if !has("signs")
+:  e! test.ok
+:  wq! test.out
+:endif
+:"
+:sign define JumpSign text=x
+:exe 'sign place 42 line=2 name=JumpSign buffer=' . bufnr('')
+:" Split the window to the bottom to verify :sign-jump will stay in the current
+:" window if the buffer is displayed there
+:bot split
+:exe 'sign jump 42 buffer=' . bufnr('')
+:call append(line('$'), winnr())
+:$-1,$w! test.out
+ENDTEST
+
+STARTTEST
+:qa!
+ENDTEST
+
diff --git a/src/testdir/test_signs.ok b/src/testdir/test_signs.ok
new file mode 100644 (file)
index 0000000..1f8c977
--- /dev/null
@@ -0,0 +1,2 @@
+
+2