diff options
Diffstat (limited to 'vim/bundle/vim-gitgutter/test')
63 files changed, 0 insertions, 460 deletions
diff --git a/vim/bundle/vim-gitgutter b/vim/bundle/vim-gitgutter new file mode 160000 +Subproject b5f23e986747a6f4b1dc1196d2a5bd3dc7c8c2b diff --git a/vim/bundle/vim-gitgutter/test/=fixture=.txt b/vim/bundle/vim-gitgutter/test/=fixture=.txt deleted file mode 100644 index e69de29..0000000 --- a/vim/bundle/vim-gitgutter/test/=fixture=.txt +++ /dev/null diff --git a/vim/bundle/vim-gitgutter/test/README.markdown b/vim/bundle/vim-gitgutter/test/README.markdown deleted file mode 100644 index 2be0c37..0000000 --- a/vim/bundle/vim-gitgutter/test/README.markdown +++ /dev/null @@ -1,30 +0,0 @@ -## Testing vim-gitgutter - -### Run the tests - -```sh -$ cd test -$ ./test -``` - -### Add a new test - -- Add a test file named like `testFoo.vim`. It should have this structure: - -```viml -source helper.vim -call Setup() - -" test code here -``` - -- Run the tests. -- Inspect output (in `foo.actual`) from the new test. If good, copy it to `foo.expected`. -- Run the tests to ensure new test's output is verified. -- Commit changes. - -### Limitations - -- Currently tests are done by writing out a file and comparing it to a known good one. -- There's no support for assertions within the testcase code. - diff --git a/vim/bundle/vim-gitgutter/test/addLines.expected b/vim/bundle/vim-gitgutter/test/addLines.expected deleted file mode 100644 index 8e2c2ec..0000000 --- a/vim/bundle/vim-gitgutter/test/addLines.expected +++ /dev/null @@ -1,4 +0,0 @@ - ---- Signs --- -Signs for fixture.txt: - line=2 id=3000 name=GitGutterLineAdded diff --git a/vim/bundle/vim-gitgutter/test/addLinesFish.expected b/vim/bundle/vim-gitgutter/test/addLinesFish.expected deleted file mode 100644 index 8e2c2ec..0000000 --- a/vim/bundle/vim-gitgutter/test/addLinesFish.expected +++ /dev/null @@ -1,4 +0,0 @@ - ---- Signs --- -Signs for fixture.txt: - line=2 id=3000 name=GitGutterLineAdded diff --git a/vim/bundle/vim-gitgutter/test/ambiguousFile.expected b/vim/bundle/vim-gitgutter/test/ambiguousFile.expected deleted file mode 100644 index 1cd4e89..0000000 --- a/vim/bundle/vim-gitgutter/test/ambiguousFile.expected +++ /dev/null @@ -1,4 +0,0 @@ - ---- Signs --- -Signs for fixture.txt: - line=5 id=3000 name=GitGutterLineModified diff --git a/vim/bundle/vim-gitgutter/test/fileAddedToGit.expected b/vim/bundle/vim-gitgutter/test/fileAddedToGit.expected deleted file mode 100644 index bfd8eeb..0000000 --- a/vim/bundle/vim-gitgutter/test/fileAddedToGit.expected +++ /dev/null @@ -1,4 +0,0 @@ - ---- Signs --- -Signs for fileAddedToGit.tmp: - line=1 id=3000 name=GitGutterLineAdded diff --git a/vim/bundle/vim-gitgutter/test/filenameWithEquals.expected b/vim/bundle/vim-gitgutter/test/filenameWithEquals.expected deleted file mode 100644 index a78b977..0000000 --- a/vim/bundle/vim-gitgutter/test/filenameWithEquals.expected +++ /dev/null @@ -1,5 +0,0 @@ - ---- Signs --- -Signs for =fixture=.txt: - line=1 id=3000 name=GitGutterLineAdded - line=2 id=3001 name=GitGutterLineAdded diff --git a/vim/bundle/vim-gitgutter/test/filenameWithSquareBrackets.expected b/vim/bundle/vim-gitgutter/test/filenameWithSquareBrackets.expected deleted file mode 100644 index 18f3022..0000000 --- a/vim/bundle/vim-gitgutter/test/filenameWithSquareBrackets.expected +++ /dev/null @@ -1,5 +0,0 @@ - ---- Signs --- -Signs for fix[tu]re.txt: - line=1 id=3000 name=GitGutterLineAdded - line=2 id=3001 name=GitGutterLineAdded diff --git a/vim/bundle/vim-gitgutter/test/fix[tu]re.txt b/vim/bundle/vim-gitgutter/test/fix[tu]re.txt deleted file mode 100644 index e69de29..0000000 --- a/vim/bundle/vim-gitgutter/test/fix[tu]re.txt +++ /dev/null diff --git a/vim/bundle/vim-gitgutter/test/fixture.txt b/vim/bundle/vim-gitgutter/test/fixture.txt deleted file mode 100644 index f5c6aff..0000000 --- a/vim/bundle/vim-gitgutter/test/fixture.txt +++ /dev/null @@ -1,11 +0,0 @@ -a -b -c -d -e -f -g -h -i -j - diff --git a/vim/bundle/vim-gitgutter/test/followSymlink.expected b/vim/bundle/vim-gitgutter/test/followSymlink.expected deleted file mode 100644 index 8f8fb4a..0000000 --- a/vim/bundle/vim-gitgutter/test/followSymlink.expected +++ /dev/null @@ -1,4 +0,0 @@ - ---- Signs --- -Signs for symlink: - line=5 id=3000 name=GitGutterLineRemoved diff --git a/vim/bundle/vim-gitgutter/test/helper.vim b/vim/bundle/vim-gitgutter/test/helper.vim deleted file mode 100644 index aaccf39..0000000 --- a/vim/bundle/vim-gitgutter/test/helper.vim +++ /dev/null @@ -1,27 +0,0 @@ -set runtimepath+=../ -source ../plugin/gitgutter.vim - -function! Setup() - edit! fixture.txt - sign unplace * -endfunction - -function! DumpSigns(filename) - execute 'redir! > ' a:filename.'.actual' - silent execute 'sign place' - redir END -endfunction - -function! DumpGitDiff(filename) - call system('git diff fixture.txt > '.a:filename.'.actual') -endfunction - -function! DumpGitDiffStaged(filename) - call system('git diff --staged fixture.txt > '.a:filename.'.actual') -endfunction - -function! Dump(text, filename) - let msg = type(a:text) == 1 ? split(a:text, '\n') : a:text - call writefile(msg, a:filename.'.actual', 'a') -endfunction - diff --git a/vim/bundle/vim-gitgutter/test/hunkHunkOutsideNoopStageGitDiffStaged.expected b/vim/bundle/vim-gitgutter/test/hunkHunkOutsideNoopStageGitDiffStaged.expected deleted file mode 100644 index e69de29..0000000 --- a/vim/bundle/vim-gitgutter/test/hunkHunkOutsideNoopStageGitDiffStaged.expected +++ /dev/null diff --git a/vim/bundle/vim-gitgutter/test/hunkHunkOutsideNoopUndoGitDiffStaged.expected b/vim/bundle/vim-gitgutter/test/hunkHunkOutsideNoopUndoGitDiffStaged.expected deleted file mode 100644 index e69de29..0000000 --- a/vim/bundle/vim-gitgutter/test/hunkHunkOutsideNoopUndoGitDiffStaged.expected +++ /dev/null diff --git a/vim/bundle/vim-gitgutter/test/hunkOutsideNoopStageSigns.expected b/vim/bundle/vim-gitgutter/test/hunkOutsideNoopStageSigns.expected deleted file mode 100644 index aa8cd86..0000000 --- a/vim/bundle/vim-gitgutter/test/hunkOutsideNoopStageSigns.expected +++ /dev/null @@ -1,2 +0,0 @@ - ---- Signs --- diff --git a/vim/bundle/vim-gitgutter/test/hunkOutsideNoopUndoSigns.expected b/vim/bundle/vim-gitgutter/test/hunkOutsideNoopUndoSigns.expected deleted file mode 100644 index aa8cd86..0000000 --- a/vim/bundle/vim-gitgutter/test/hunkOutsideNoopUndoSigns.expected +++ /dev/null @@ -1,2 +0,0 @@ - ---- Signs --- diff --git a/vim/bundle/vim-gitgutter/test/hunkStageGitDiff.expected b/vim/bundle/vim-gitgutter/test/hunkStageGitDiff.expected deleted file mode 100644 index 6f6a7fa..0000000 --- a/vim/bundle/vim-gitgutter/test/hunkStageGitDiff.expected +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/test/fixture.txt b/test/fixture.txt -index f5c6aff..ae8e546 100644 ---- a/test/fixture.txt -+++ b/test/fixture.txt -@@ -2,7 +2,7 @@ a - b - c - d --e -+*e - f - g - h diff --git a/vim/bundle/vim-gitgutter/test/hunkStageNearbyGitDiff.expected b/vim/bundle/vim-gitgutter/test/hunkStageNearbyGitDiff.expected deleted file mode 100644 index 6a0b7f0..0000000 --- a/vim/bundle/vim-gitgutter/test/hunkStageNearbyGitDiff.expected +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/test/fixture.txt b/test/fixture.txt -index 53b13df..8fdfda7 100644 ---- a/test/fixture.txt -+++ b/test/fixture.txt -@@ -1,5 +1,8 @@ - a - b -+x -+y -+z - c - e - f diff --git a/vim/bundle/vim-gitgutter/test/hunkStageNearbyGitDiffStaged.expected b/vim/bundle/vim-gitgutter/test/hunkStageNearbyGitDiffStaged.expected deleted file mode 100644 index 8806576..0000000 --- a/vim/bundle/vim-gitgutter/test/hunkStageNearbyGitDiffStaged.expected +++ /dev/null @@ -1,12 +0,0 @@ -diff --git a/test/fixture.txt b/test/fixture.txt -index f5c6aff..53b13df 100644 ---- a/test/fixture.txt -+++ b/test/fixture.txt -@@ -1,7 +1,6 @@ - a - b - c --d - e - f - g diff --git a/vim/bundle/vim-gitgutter/test/hunkStageNearbySigns.expected b/vim/bundle/vim-gitgutter/test/hunkStageNearbySigns.expected deleted file mode 100644 index edfebd2..0000000 --- a/vim/bundle/vim-gitgutter/test/hunkStageNearbySigns.expected +++ /dev/null @@ -1,6 +0,0 @@ - ---- Signs --- -Signs for fixture.txt: - line=3 id=3000 name=GitGutterLineAdded - line=4 id=3001 name=GitGutterLineAdded - line=5 id=3002 name=GitGutterLineAdded diff --git a/vim/bundle/vim-gitgutter/test/hunkStageSigns.expected b/vim/bundle/vim-gitgutter/test/hunkStageSigns.expected deleted file mode 100644 index aa8cd86..0000000 --- a/vim/bundle/vim-gitgutter/test/hunkStageSigns.expected +++ /dev/null @@ -1,2 +0,0 @@ - ---- Signs --- diff --git a/vim/bundle/vim-gitgutter/test/hunkUndoGitDiff.expected b/vim/bundle/vim-gitgutter/test/hunkUndoGitDiff.expected deleted file mode 100644 index e69de29..0000000 --- a/vim/bundle/vim-gitgutter/test/hunkUndoGitDiff.expected +++ /dev/null diff --git a/vim/bundle/vim-gitgutter/test/hunkUndoNearbyGitDiff.expected b/vim/bundle/vim-gitgutter/test/hunkUndoNearbyGitDiff.expected deleted file mode 100644 index d480c7b..0000000 --- a/vim/bundle/vim-gitgutter/test/hunkUndoNearbyGitDiff.expected +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/test/fixture.txt b/test/fixture.txt -index f5c6aff..3fbde56 100644 ---- a/test/fixture.txt -+++ b/test/fixture.txt -@@ -1,5 +1,8 @@ - a - b -+x -+y -+z - c - d - e diff --git a/vim/bundle/vim-gitgutter/test/hunkUndoNearbySigns.expected b/vim/bundle/vim-gitgutter/test/hunkUndoNearbySigns.expected deleted file mode 100644 index edfebd2..0000000 --- a/vim/bundle/vim-gitgutter/test/hunkUndoNearbySigns.expected +++ /dev/null @@ -1,6 +0,0 @@ - ---- Signs --- -Signs for fixture.txt: - line=3 id=3000 name=GitGutterLineAdded - line=4 id=3001 name=GitGutterLineAdded - line=5 id=3002 name=GitGutterLineAdded diff --git a/vim/bundle/vim-gitgutter/test/hunkUndoSigns.expected b/vim/bundle/vim-gitgutter/test/hunkUndoSigns.expected deleted file mode 100644 index aa8cd86..0000000 --- a/vim/bundle/vim-gitgutter/test/hunkUndoSigns.expected +++ /dev/null @@ -1,2 +0,0 @@ - ---- Signs --- diff --git a/vim/bundle/vim-gitgutter/test/keepAlt.expected b/vim/bundle/vim-gitgutter/test/keepAlt.expected deleted file mode 100644 index feee7b5..0000000 --- a/vim/bundle/vim-gitgutter/test/keepAlt.expected +++ /dev/null @@ -1,3 +0,0 @@ -buffer: fixture.txt -altbuffer: -altbuffer: diff --git a/vim/bundle/vim-gitgutter/test/keepModified.expected b/vim/bundle/vim-gitgutter/test/keepModified.expected deleted file mode 100644 index 57a1bbf..0000000 --- a/vim/bundle/vim-gitgutter/test/keepModified.expected +++ /dev/null @@ -1,2 +0,0 @@ -modified: 1 -modified: 1 diff --git a/vim/bundle/vim-gitgutter/test/keepOpMarks.expected b/vim/bundle/vim-gitgutter/test/keepOpMarks.expected deleted file mode 100644 index ed6b8c3..0000000 --- a/vim/bundle/vim-gitgutter/test/keepOpMarks.expected +++ /dev/null @@ -1,4 +0,0 @@ -'[ mark: 0,6,1,0 -'] mark: 0,6,2,0 -'[ mark: 0,6,1,0 -'] mark: 0,6,2,0 diff --git a/vim/bundle/vim-gitgutter/test/modifyLines.expected b/vim/bundle/vim-gitgutter/test/modifyLines.expected deleted file mode 100644 index 91ad42c..0000000 --- a/vim/bundle/vim-gitgutter/test/modifyLines.expected +++ /dev/null @@ -1,4 +0,0 @@ - ---- Signs --- -Signs for fixture.txt: - line=1 id=3000 name=GitGutterLineModified diff --git a/vim/bundle/vim-gitgutter/test/noModifications.expected b/vim/bundle/vim-gitgutter/test/noModifications.expected deleted file mode 100644 index aa8cd86..0000000 --- a/vim/bundle/vim-gitgutter/test/noModifications.expected +++ /dev/null @@ -1,2 +0,0 @@ - ---- Signs --- diff --git a/vim/bundle/vim-gitgutter/test/orphanedSigns.expected b/vim/bundle/vim-gitgutter/test/orphanedSigns.expected deleted file mode 100644 index 1beeb65..0000000 --- a/vim/bundle/vim-gitgutter/test/orphanedSigns.expected +++ /dev/null @@ -1,4 +0,0 @@ - ---- Signs --- -Signs for fixture.txt: - line=6 id=3001 name=GitGutterLineAdded diff --git a/vim/bundle/vim-gitgutter/test/removeFirstLines.expected b/vim/bundle/vim-gitgutter/test/removeFirstLines.expected deleted file mode 100644 index 1cbfd76..0000000 --- a/vim/bundle/vim-gitgutter/test/removeFirstLines.expected +++ /dev/null @@ -1,4 +0,0 @@ - ---- Signs --- -Signs for fixture.txt: - line=1 id=3000 name=GitGutterLineRemovedFirstLine diff --git a/vim/bundle/vim-gitgutter/test/removeLines.expected b/vim/bundle/vim-gitgutter/test/removeLines.expected deleted file mode 100644 index 94d8ee4..0000000 --- a/vim/bundle/vim-gitgutter/test/removeLines.expected +++ /dev/null @@ -1,4 +0,0 @@ - ---- Signs --- -Signs for fixture.txt: - line=4 id=3000 name=GitGutterLineRemoved diff --git a/vim/bundle/vim-gitgutter/test/signColumnAlways.expected b/vim/bundle/vim-gitgutter/test/signColumnAlways.expected deleted file mode 100644 index aeda456..0000000 --- a/vim/bundle/vim-gitgutter/test/signColumnAlways.expected +++ /dev/null @@ -1,4 +0,0 @@ - ---- Signs --- -Signs for fixture.txt: - line=9999 id=2999 name=GitGutterDummy diff --git a/vim/bundle/vim-gitgutter/test/test b/vim/bundle/vim-gitgutter/test/test deleted file mode 100755 index 5c2d877..0000000 --- a/vim/bundle/vim-gitgutter/test/test +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env bash - -VIM="/Applications/MacVim.app/Contents/MacOS/Vim -v" - -status=0 - -# Execute the tests. -for editor in "$VIM" nvim; do - - for testcase in test*.vim; do - $editor -N -u NONE --cmd 'let g:gitgutter_async=0' -S $testcase -c 'quit!' - - git reset HEAD fixture.txt > /dev/null - git checkout fixture.txt - done - - # Verify the results. - echo "$editor:" - echo - - count_ok=0 - count_fail=0 - - for expected in *.expected; do - name=${expected%.*} - actual=$name.actual - - if diff $expected $actual; then - count_ok=$((count_ok + 1)) - echo "$name ok" - rm $actual - else - count_fail=$((count_fail + 1)) - echo "$name failed" - fi - done - - # Print results. - echo - echo "$((count_ok + count_fail)) tests" - echo "$count_ok ok" - echo "$count_fail failed" - echo - - status=$(($status + $count_fail)) - -done - -exit $status - diff --git a/vim/bundle/vim-gitgutter/test/testAddLines.vim b/vim/bundle/vim-gitgutter/test/testAddLines.vim deleted file mode 100644 index 6b0ec4a..0000000 --- a/vim/bundle/vim-gitgutter/test/testAddLines.vim +++ /dev/null @@ -1,6 +0,0 @@ -source helper.vim -call Setup() - -normal ggo* -write -call DumpSigns('addLines') diff --git a/vim/bundle/vim-gitgutter/test/testAddLinesFish.vim b/vim/bundle/vim-gitgutter/test/testAddLinesFish.vim deleted file mode 100644 index f1c6bab..0000000 --- a/vim/bundle/vim-gitgutter/test/testAddLinesFish.vim +++ /dev/null @@ -1,7 +0,0 @@ -set shell=/usr/local/bin/fish -source helper.vim -call Setup() - -normal ggo* -write -call DumpSigns('addLinesFish') diff --git a/vim/bundle/vim-gitgutter/test/testEditAmbiguousFile.vim b/vim/bundle/vim-gitgutter/test/testEditAmbiguousFile.vim deleted file mode 100644 index 693ecf7..0000000 --- a/vim/bundle/vim-gitgutter/test/testEditAmbiguousFile.vim +++ /dev/null @@ -1,9 +0,0 @@ -source helper.vim -call Setup() - -normal 5Gi* -call system('git checkout -b fixture.txt') -write -call DumpSigns('ambiguousFile') - -call system('git checkout - && git branch -d fixture.txt') diff --git a/vim/bundle/vim-gitgutter/test/testFileAddedToGit.vim b/vim/bundle/vim-gitgutter/test/testFileAddedToGit.vim deleted file mode 100644 index 91a2c14..0000000 --- a/vim/bundle/vim-gitgutter/test/testFileAddedToGit.vim +++ /dev/null @@ -1,12 +0,0 @@ -source helper.vim - -let tmpfile = 'fileAddedToGit.tmp' -call system('touch '.tmpfile) -call system('git add '.tmpfile) -execute 'edit '.tmpfile -normal ihello -write -call DumpSigns('fileAddedToGit') - -call system('git reset HEAD '.tmpfile) -call system('rm '.tmpfile) diff --git a/vim/bundle/vim-gitgutter/test/testFilenameWithEquals.vim b/vim/bundle/vim-gitgutter/test/testFilenameWithEquals.vim deleted file mode 100644 index 082ff02..0000000 --- a/vim/bundle/vim-gitgutter/test/testFilenameWithEquals.vim +++ /dev/null @@ -1,12 +0,0 @@ -source helper.vim - -edit =fixture=.txt -normal ggo* -try - write - write - call DumpSigns('filenameWithEquals') -finally - call system('git reset HEAD =fixture=.txt') - call system('git checkout =fixture=.txt') -endtry diff --git a/vim/bundle/vim-gitgutter/test/testFilenameWithSquareBrackets.vim b/vim/bundle/vim-gitgutter/test/testFilenameWithSquareBrackets.vim deleted file mode 100644 index 85ae889..0000000 --- a/vim/bundle/vim-gitgutter/test/testFilenameWithSquareBrackets.vim +++ /dev/null @@ -1,9 +0,0 @@ -source helper.vim - -edit fix[tu]re.txt -normal ggo* -write -call DumpSigns('filenameWithSquareBrackets') - -call system('git reset HEAD fix[tu]re.txt') -call system('git checkout fix[tu]re.txt') diff --git a/vim/bundle/vim-gitgutter/test/testFollowSymlink.vim b/vim/bundle/vim-gitgutter/test/testFollowSymlink.vim deleted file mode 100644 index fda33ec..0000000 --- a/vim/bundle/vim-gitgutter/test/testFollowSymlink.vim +++ /dev/null @@ -1,10 +0,0 @@ -source helper.vim - -let tmpfile = 'symlink' -call system('ln -nfs fixture.txt '.tmpfile) -execute 'edit '.tmpfile -execute '6d' -write -call DumpSigns('followSymlink') - -call system('rm '.tmpfile) diff --git a/vim/bundle/vim-gitgutter/test/testHunkOutsideNoop.vim b/vim/bundle/vim-gitgutter/test/testHunkOutsideNoop.vim deleted file mode 100644 index 6601e6d..0000000 --- a/vim/bundle/vim-gitgutter/test/testHunkOutsideNoop.vim +++ /dev/null @@ -1,13 +0,0 @@ -source helper.vim -call Setup() - -normal 5G - -execute 'GitGutterStageHunk' -call DumpSigns('hunkOutsideNoopStageSigns') -call DumpGitDiffStaged('hunkHunkOutsideNoopStageGitDiffStaged') - -execute 'GitGutterUndoHunk' -call DumpSigns('hunkOutsideNoopUndoSigns') -call DumpGitDiffStaged('hunkHunkOutsideNoopUndoGitDiffStaged') - diff --git a/vim/bundle/vim-gitgutter/test/testHunkStage.vim b/vim/bundle/vim-gitgutter/test/testHunkStage.vim deleted file mode 100644 index 6f818fb..0000000 --- a/vim/bundle/vim-gitgutter/test/testHunkStage.vim +++ /dev/null @@ -1,7 +0,0 @@ -source helper.vim -call Setup() - -normal 5Gi* -execute 'GitGutterStageHunk' -call DumpSigns('hunkStageSigns') -call DumpGitDiffStaged('hunkStageGitDiff') diff --git a/vim/bundle/vim-gitgutter/test/testHunkStageNearbyHunk.vim b/vim/bundle/vim-gitgutter/test/testHunkStageNearbyHunk.vim deleted file mode 100644 index 9939103..0000000 --- a/vim/bundle/vim-gitgutter/test/testHunkStageNearbyHunk.vim +++ /dev/null @@ -1,10 +0,0 @@ -source helper.vim -call Setup() - -execute "normal! 2Gox\<CR>y\<CR>z" -normal 2jdd -normal k -execute 'GitGutterStageHunk' -call DumpSigns('hunkStageNearbySigns') -call DumpGitDiff('hunkStageNearbyGitDiff') -call DumpGitDiffStaged('hunkStageNearbyGitDiffStaged') diff --git a/vim/bundle/vim-gitgutter/test/testHunkUndo.vim b/vim/bundle/vim-gitgutter/test/testHunkUndo.vim deleted file mode 100644 index 9d187a7..0000000 --- a/vim/bundle/vim-gitgutter/test/testHunkUndo.vim +++ /dev/null @@ -1,7 +0,0 @@ -source helper.vim -call Setup() - -normal 5Gi* -execute 'GitGutterUndoHunk' -call DumpSigns('hunkUndoSigns') -call DumpGitDiffStaged('hunkUndoGitDiff') diff --git a/vim/bundle/vim-gitgutter/test/testHunkUndoNearbyHunk.vim b/vim/bundle/vim-gitgutter/test/testHunkUndoNearbyHunk.vim deleted file mode 100644 index 5721f2d..0000000 --- a/vim/bundle/vim-gitgutter/test/testHunkUndoNearbyHunk.vim +++ /dev/null @@ -1,9 +0,0 @@ -source helper.vim -call Setup() - -execute "normal! 2Gox\<CR>y\<CR>z" -normal 2jdd -normal k -execute 'GitGutterUndoHunk' -call DumpSigns('hunkUndoNearbySigns') -call DumpGitDiff('hunkUndoNearbyGitDiff') diff --git a/vim/bundle/vim-gitgutter/test/testKeepAlt.vim b/vim/bundle/vim-gitgutter/test/testKeepAlt.vim deleted file mode 100644 index 303ff0f..0000000 --- a/vim/bundle/vim-gitgutter/test/testKeepAlt.vim +++ /dev/null @@ -1,12 +0,0 @@ -source helper.vim -call Setup() - -enew -execute "normal! \<C-^>" -call Dump('buffer: '.bufname(''), 'keepAlt') -call Dump('altbuffer: '.bufname('#'), 'keepAlt') - -normal ggx -doautocmd CursorHold -call Dump('altbuffer: '.bufname('#'), 'keepAlt') - diff --git a/vim/bundle/vim-gitgutter/test/testKeepModified.vim b/vim/bundle/vim-gitgutter/test/testKeepModified.vim deleted file mode 100644 index acb687f..0000000 --- a/vim/bundle/vim-gitgutter/test/testKeepModified.vim +++ /dev/null @@ -1,8 +0,0 @@ -source helper.vim -call Setup() - -normal 5Go* -call Dump("modified: ".getbufvar('', '&modified'), 'keepModified') -doautocmd CursorHold -call Dump("modified: ".getbufvar('', '&modified'), 'keepModified') - diff --git a/vim/bundle/vim-gitgutter/test/testKeepOpMarks.vim b/vim/bundle/vim-gitgutter/test/testKeepOpMarks.vim deleted file mode 100644 index 1175c80..0000000 --- a/vim/bundle/vim-gitgutter/test/testKeepOpMarks.vim +++ /dev/null @@ -1,10 +0,0 @@ -source helper.vim -call Setup() - -normal 5Go* -call Dump("'[ mark: ".join(getpos("'["), ','), 'keepOpMarks') -call Dump("'] mark: ".join(getpos("']"), ','), 'keepOpMarks') -doautocmd CursorHold -call Dump("'[ mark: ".join(getpos("'["), ','), 'keepOpMarks') -call Dump("'] mark: ".join(getpos("']"), ','), 'keepOpMarks') - diff --git a/vim/bundle/vim-gitgutter/test/testModifyLines.vim b/vim/bundle/vim-gitgutter/test/testModifyLines.vim deleted file mode 100644 index d4a3d01..0000000 --- a/vim/bundle/vim-gitgutter/test/testModifyLines.vim +++ /dev/null @@ -1,6 +0,0 @@ -source helper.vim -call Setup() - -normal ggi* -write -call DumpSigns('modifyLines') diff --git a/vim/bundle/vim-gitgutter/test/testNoModifications.vim b/vim/bundle/vim-gitgutter/test/testNoModifications.vim deleted file mode 100644 index 909639f..0000000 --- a/vim/bundle/vim-gitgutter/test/testNoModifications.vim +++ /dev/null @@ -1,4 +0,0 @@ -source helper.vim -call Setup() - -call DumpSigns('noModifications') diff --git a/vim/bundle/vim-gitgutter/test/testOrphanedSigns.vim b/vim/bundle/vim-gitgutter/test/testOrphanedSigns.vim deleted file mode 100644 index 35992d2..0000000 --- a/vim/bundle/vim-gitgutter/test/testOrphanedSigns.vim +++ /dev/null @@ -1,8 +0,0 @@ -source helper.vim -call Setup() - -execute "normal 5GoX\<CR>Y" -write -execute '6d' -write -call DumpSigns('orphanedSigns') diff --git a/vim/bundle/vim-gitgutter/test/testRemoveFirstLines.vim b/vim/bundle/vim-gitgutter/test/testRemoveFirstLines.vim deleted file mode 100644 index 4a29a73..0000000 --- a/vim/bundle/vim-gitgutter/test/testRemoveFirstLines.vim +++ /dev/null @@ -1,6 +0,0 @@ -source helper.vim -call Setup() - -execute '1d' -write -call DumpSigns('removeFirstLines') diff --git a/vim/bundle/vim-gitgutter/test/testRemoveLines.vim b/vim/bundle/vim-gitgutter/test/testRemoveLines.vim deleted file mode 100644 index 23d672b..0000000 --- a/vim/bundle/vim-gitgutter/test/testRemoveLines.vim +++ /dev/null @@ -1,6 +0,0 @@ -source helper.vim -call Setup() - -execute '5d' -write -call DumpSigns('removeLines') diff --git a/vim/bundle/vim-gitgutter/test/testSignColumnAlways.vim b/vim/bundle/vim-gitgutter/test/testSignColumnAlways.vim deleted file mode 100644 index ff3eb94..0000000 --- a/vim/bundle/vim-gitgutter/test/testSignColumnAlways.vim +++ /dev/null @@ -1,7 +0,0 @@ -source helper.vim -call Setup() - -let g:gitgutter_sign_column_always=1 -write - -call DumpSigns('signColumnAlways') diff --git a/vim/bundle/vim-gitgutter/test/testUntrackedFileOutsideRepo.vim b/vim/bundle/vim-gitgutter/test/testUntrackedFileOutsideRepo.vim deleted file mode 100644 index f473d35..0000000 --- a/vim/bundle/vim-gitgutter/test/testUntrackedFileOutsideRepo.vim +++ /dev/null @@ -1,6 +0,0 @@ -source helper.vim - -let tmpfile = tempname() -call system('touch '.tmpfile) -execute 'edit '.tmpfile -call DumpSigns('untrackedFileOutsideRepo') diff --git a/vim/bundle/vim-gitgutter/test/testUntrackedFileSquareBracketsWithinRepo.vim b/vim/bundle/vim-gitgutter/test/testUntrackedFileSquareBracketsWithinRepo.vim deleted file mode 100644 index b1fd48a..0000000 --- a/vim/bundle/vim-gitgutter/test/testUntrackedFileSquareBracketsWithinRepo.vim +++ /dev/null @@ -1,10 +0,0 @@ -source helper.vim - -let tmpfile = '[un]trackedFileWithinRepo.tmp' -call system('touch '.tmpfile) -execute 'edit '.tmpfile -normal ggo* -doautocmd CursorHold -call DumpSigns('untrackedFileSquareBracketsWithinRepo') - -call system('rm '.tmpfile) diff --git a/vim/bundle/vim-gitgutter/test/testUntrackedFileWithinRepo.vim b/vim/bundle/vim-gitgutter/test/testUntrackedFileWithinRepo.vim deleted file mode 100644 index 4fdd48e..0000000 --- a/vim/bundle/vim-gitgutter/test/testUntrackedFileWithinRepo.vim +++ /dev/null @@ -1,10 +0,0 @@ -source helper.vim - -let tmpfile = 'untrackedFileWithinRepo.tmp' -call system('touch '.tmpfile) -execute 'edit '.tmpfile -normal ggo* -doautocmd CursorHold -call DumpSigns('untrackedFileWithinRepo') - -call system('rm '.tmpfile) diff --git a/vim/bundle/vim-gitgutter/test/untrackedFileOutsideRepo.expected b/vim/bundle/vim-gitgutter/test/untrackedFileOutsideRepo.expected deleted file mode 100644 index aa8cd86..0000000 --- a/vim/bundle/vim-gitgutter/test/untrackedFileOutsideRepo.expected +++ /dev/null @@ -1,2 +0,0 @@ - ---- Signs --- diff --git a/vim/bundle/vim-gitgutter/test/untrackedFileSquareBracketsWithinRepo.expected b/vim/bundle/vim-gitgutter/test/untrackedFileSquareBracketsWithinRepo.expected deleted file mode 100644 index aa8cd86..0000000 --- a/vim/bundle/vim-gitgutter/test/untrackedFileSquareBracketsWithinRepo.expected +++ /dev/null @@ -1,2 +0,0 @@ - ---- Signs --- diff --git a/vim/bundle/vim-gitgutter/test/untrackedFileWithinRepo.expected b/vim/bundle/vim-gitgutter/test/untrackedFileWithinRepo.expected deleted file mode 100644 index aa8cd86..0000000 --- a/vim/bundle/vim-gitgutter/test/untrackedFileWithinRepo.expected +++ /dev/null @@ -1,2 +0,0 @@ - ---- Signs --- |