From 9931e0888b2419326ae10ebbfae532261c5c125f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 30 Jun 2016 16:11:56 +0200 Subject: Fix submodules --- vim/bundle/vim-gitgutter | 1 + vim/bundle/vim-gitgutter/test/=fixture=.txt | 0 vim/bundle/vim-gitgutter/test/README.markdown | 30 ------------- vim/bundle/vim-gitgutter/test/addLines.expected | 4 -- .../vim-gitgutter/test/addLinesFish.expected | 4 -- .../vim-gitgutter/test/ambiguousFile.expected | 4 -- .../vim-gitgutter/test/fileAddedToGit.expected | 4 -- .../vim-gitgutter/test/filenameWithEquals.expected | 5 --- .../test/filenameWithSquareBrackets.expected | 5 --- vim/bundle/vim-gitgutter/test/fix[tu]re.txt | 0 vim/bundle/vim-gitgutter/test/fixture.txt | 11 ----- .../vim-gitgutter/test/followSymlink.expected | 4 -- vim/bundle/vim-gitgutter/test/helper.vim | 27 ------------ .../hunkHunkOutsideNoopStageGitDiffStaged.expected | 0 .../hunkHunkOutsideNoopUndoGitDiffStaged.expected | 0 .../test/hunkOutsideNoopStageSigns.expected | 2 - .../test/hunkOutsideNoopUndoSigns.expected | 2 - .../vim-gitgutter/test/hunkStageGitDiff.expected | 13 ------ .../test/hunkStageNearbyGitDiff.expected | 13 ------ .../test/hunkStageNearbyGitDiffStaged.expected | 12 ------ .../test/hunkStageNearbySigns.expected | 6 --- .../vim-gitgutter/test/hunkStageSigns.expected | 2 - .../vim-gitgutter/test/hunkUndoGitDiff.expected | 0 .../test/hunkUndoNearbyGitDiff.expected | 13 ------ .../test/hunkUndoNearbySigns.expected | 6 --- .../vim-gitgutter/test/hunkUndoSigns.expected | 2 - vim/bundle/vim-gitgutter/test/keepAlt.expected | 3 -- .../vim-gitgutter/test/keepModified.expected | 2 - vim/bundle/vim-gitgutter/test/keepOpMarks.expected | 4 -- vim/bundle/vim-gitgutter/test/modifyLines.expected | 4 -- .../vim-gitgutter/test/noModifications.expected | 2 - .../vim-gitgutter/test/orphanedSigns.expected | 4 -- .../vim-gitgutter/test/removeFirstLines.expected | 4 -- vim/bundle/vim-gitgutter/test/removeLines.expected | 4 -- .../vim-gitgutter/test/signColumnAlways.expected | 4 -- vim/bundle/vim-gitgutter/test/test | 50 ---------------------- vim/bundle/vim-gitgutter/test/testAddLines.vim | 6 --- vim/bundle/vim-gitgutter/test/testAddLinesFish.vim | 7 --- .../vim-gitgutter/test/testEditAmbiguousFile.vim | 9 ---- .../vim-gitgutter/test/testFileAddedToGit.vim | 12 ------ .../vim-gitgutter/test/testFilenameWithEquals.vim | 12 ------ .../test/testFilenameWithSquareBrackets.vim | 9 ---- .../vim-gitgutter/test/testFollowSymlink.vim | 10 ----- .../vim-gitgutter/test/testHunkOutsideNoop.vim | 13 ------ vim/bundle/vim-gitgutter/test/testHunkStage.vim | 7 --- .../vim-gitgutter/test/testHunkStageNearbyHunk.vim | 10 ----- vim/bundle/vim-gitgutter/test/testHunkUndo.vim | 7 --- .../vim-gitgutter/test/testHunkUndoNearbyHunk.vim | 9 ---- vim/bundle/vim-gitgutter/test/testKeepAlt.vim | 12 ------ vim/bundle/vim-gitgutter/test/testKeepModified.vim | 8 ---- vim/bundle/vim-gitgutter/test/testKeepOpMarks.vim | 10 ----- vim/bundle/vim-gitgutter/test/testModifyLines.vim | 6 --- .../vim-gitgutter/test/testNoModifications.vim | 4 -- .../vim-gitgutter/test/testOrphanedSigns.vim | 8 ---- .../vim-gitgutter/test/testRemoveFirstLines.vim | 6 --- vim/bundle/vim-gitgutter/test/testRemoveLines.vim | 6 --- .../vim-gitgutter/test/testSignColumnAlways.vim | 7 --- .../test/testUntrackedFileOutsideRepo.vim | 6 --- .../testUntrackedFileSquareBracketsWithinRepo.vim | 10 ----- .../test/testUntrackedFileWithinRepo.vim | 10 ----- .../test/untrackedFileOutsideRepo.expected | 2 - .../untrackedFileSquareBracketsWithinRepo.expected | 2 - .../test/untrackedFileWithinRepo.expected | 2 - 63 files changed, 1 insertion(+), 460 deletions(-) create mode 160000 vim/bundle/vim-gitgutter delete mode 100644 vim/bundle/vim-gitgutter/test/=fixture=.txt delete mode 100644 vim/bundle/vim-gitgutter/test/README.markdown delete mode 100644 vim/bundle/vim-gitgutter/test/addLines.expected delete mode 100644 vim/bundle/vim-gitgutter/test/addLinesFish.expected delete mode 100644 vim/bundle/vim-gitgutter/test/ambiguousFile.expected delete mode 100644 vim/bundle/vim-gitgutter/test/fileAddedToGit.expected delete mode 100644 vim/bundle/vim-gitgutter/test/filenameWithEquals.expected delete mode 100644 vim/bundle/vim-gitgutter/test/filenameWithSquareBrackets.expected delete mode 100644 vim/bundle/vim-gitgutter/test/fix[tu]re.txt delete mode 100644 vim/bundle/vim-gitgutter/test/fixture.txt delete mode 100644 vim/bundle/vim-gitgutter/test/followSymlink.expected delete mode 100644 vim/bundle/vim-gitgutter/test/helper.vim delete mode 100644 vim/bundle/vim-gitgutter/test/hunkHunkOutsideNoopStageGitDiffStaged.expected delete mode 100644 vim/bundle/vim-gitgutter/test/hunkHunkOutsideNoopUndoGitDiffStaged.expected delete mode 100644 vim/bundle/vim-gitgutter/test/hunkOutsideNoopStageSigns.expected delete mode 100644 vim/bundle/vim-gitgutter/test/hunkOutsideNoopUndoSigns.expected delete mode 100644 vim/bundle/vim-gitgutter/test/hunkStageGitDiff.expected delete mode 100644 vim/bundle/vim-gitgutter/test/hunkStageNearbyGitDiff.expected delete mode 100644 vim/bundle/vim-gitgutter/test/hunkStageNearbyGitDiffStaged.expected delete mode 100644 vim/bundle/vim-gitgutter/test/hunkStageNearbySigns.expected delete mode 100644 vim/bundle/vim-gitgutter/test/hunkStageSigns.expected delete mode 100644 vim/bundle/vim-gitgutter/test/hunkUndoGitDiff.expected delete mode 100644 vim/bundle/vim-gitgutter/test/hunkUndoNearbyGitDiff.expected delete mode 100644 vim/bundle/vim-gitgutter/test/hunkUndoNearbySigns.expected delete mode 100644 vim/bundle/vim-gitgutter/test/hunkUndoSigns.expected delete mode 100644 vim/bundle/vim-gitgutter/test/keepAlt.expected delete mode 100644 vim/bundle/vim-gitgutter/test/keepModified.expected delete mode 100644 vim/bundle/vim-gitgutter/test/keepOpMarks.expected delete mode 100644 vim/bundle/vim-gitgutter/test/modifyLines.expected delete mode 100644 vim/bundle/vim-gitgutter/test/noModifications.expected delete mode 100644 vim/bundle/vim-gitgutter/test/orphanedSigns.expected delete mode 100644 vim/bundle/vim-gitgutter/test/removeFirstLines.expected delete mode 100644 vim/bundle/vim-gitgutter/test/removeLines.expected delete mode 100644 vim/bundle/vim-gitgutter/test/signColumnAlways.expected delete mode 100755 vim/bundle/vim-gitgutter/test/test delete mode 100644 vim/bundle/vim-gitgutter/test/testAddLines.vim delete mode 100644 vim/bundle/vim-gitgutter/test/testAddLinesFish.vim delete mode 100644 vim/bundle/vim-gitgutter/test/testEditAmbiguousFile.vim delete mode 100644 vim/bundle/vim-gitgutter/test/testFileAddedToGit.vim delete mode 100644 vim/bundle/vim-gitgutter/test/testFilenameWithEquals.vim delete mode 100644 vim/bundle/vim-gitgutter/test/testFilenameWithSquareBrackets.vim delete mode 100644 vim/bundle/vim-gitgutter/test/testFollowSymlink.vim delete mode 100644 vim/bundle/vim-gitgutter/test/testHunkOutsideNoop.vim delete mode 100644 vim/bundle/vim-gitgutter/test/testHunkStage.vim delete mode 100644 vim/bundle/vim-gitgutter/test/testHunkStageNearbyHunk.vim delete mode 100644 vim/bundle/vim-gitgutter/test/testHunkUndo.vim delete mode 100644 vim/bundle/vim-gitgutter/test/testHunkUndoNearbyHunk.vim delete mode 100644 vim/bundle/vim-gitgutter/test/testKeepAlt.vim delete mode 100644 vim/bundle/vim-gitgutter/test/testKeepModified.vim delete mode 100644 vim/bundle/vim-gitgutter/test/testKeepOpMarks.vim delete mode 100644 vim/bundle/vim-gitgutter/test/testModifyLines.vim delete mode 100644 vim/bundle/vim-gitgutter/test/testNoModifications.vim delete mode 100644 vim/bundle/vim-gitgutter/test/testOrphanedSigns.vim delete mode 100644 vim/bundle/vim-gitgutter/test/testRemoveFirstLines.vim delete mode 100644 vim/bundle/vim-gitgutter/test/testRemoveLines.vim delete mode 100644 vim/bundle/vim-gitgutter/test/testSignColumnAlways.vim delete mode 100644 vim/bundle/vim-gitgutter/test/testUntrackedFileOutsideRepo.vim delete mode 100644 vim/bundle/vim-gitgutter/test/testUntrackedFileSquareBracketsWithinRepo.vim delete mode 100644 vim/bundle/vim-gitgutter/test/testUntrackedFileWithinRepo.vim delete mode 100644 vim/bundle/vim-gitgutter/test/untrackedFileOutsideRepo.expected delete mode 100644 vim/bundle/vim-gitgutter/test/untrackedFileSquareBracketsWithinRepo.expected delete mode 100644 vim/bundle/vim-gitgutter/test/untrackedFileWithinRepo.expected (limited to 'vim/bundle/vim-gitgutter/test') diff --git a/vim/bundle/vim-gitgutter b/vim/bundle/vim-gitgutter new file mode 160000 index 0000000..b5f23e9 --- /dev/null +++ b/vim/bundle/vim-gitgutter @@ -0,0 +1 @@ +Subproject commit b5f23e986747a6f4b1dc1196d2a5bd3dc7c8c2b6 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 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 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 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 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 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\y\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\y\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! \" -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\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 --- -- cgit v1.2.3