Commits

ZyX_I committed 26d995a

Modified au(diff|file)maps tests so that they check whether buffer was closed

Comments (0)

Files changed (5)

test/audiffmaps.in

 :split
 :R AuDiff rev1 4 **
 :call WriteFile(bufname('%'))
-X:call WriteFile(bufname('%'))
+X:WB
+:WW
 X:R AuDiff rev1 4 **
 Go:call WriteFile(bufname('%'))
 XX:R edit crepo.zsh

test/audiffmaps.ok

 aurum://diff:%TMPDIR%/test/audiffmapsrepo:41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1:fe851681c15eb282a18ab7660f85a677ee1e577c::
 1
 aurum://diff:%TMPDIR%/test/audiffmapsrepo:aa37b7dd6c397b16a77b1f405d49828aa6434bb2:ccf3e1d041800ad99d46dcdec6e12c8a770456f9:datelines.lst;hglines.lst:
-aurum://diff:%TMPDIR%/test/audiffmapsrepo:41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1:fe851681c15eb282a18ab7660f85a677ee1e577c::
+=aurum://diff:%TMPDIR%/test/audiffmapsrepo:41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1:fe851681c15eb282a18ab7660f85a677ee1e577c::
+*1: aurum://diff:%TMPDIR%/test/audiffmapsrepo:41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1:fe851681c15eb282a18ab7660f85a677ee1e577c::
+#2: aurum://diff:%TMPDIR%/test/audiffmapsrepo:41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1:fe851681c15eb282a18ab7660f85a677ee1e577c::
 aurum://file:%TMPDIR%/test/audiffmapsrepo:aa37b7dd6c397b16a77b1f405d49828aa6434bb2:hglines.lst
 %TMPDIR%/test/audiffmapsrepo/crepo.zsh
 2

test/aufilemaps.in

 J:call WriteFile(bufname('%'))
 K:call WriteFile(bufname('%'))
 U:R call WriteFile(filereadable('crepo.zsh'))
+:split
 :R AuFile tip chgrepo.zsh
 :call WriteFile(bufname('%'))
-X:call WriteFile(bufname('%'))
+X:WB
+:WW
+:only
 d:call WriteFile(bufname('%'))
 :bwipeout!
 c:call WriteFile(bufname('%'))

test/aufilemaps.ok

 aurum://file:%TMPDIR%/test/aufilemapsrepo:41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1:crepo.zsh
 1
 aurum://file:%TMPDIR%/test/aufilemapsrepo:54d2db605eec15091bb4b194499d6db40e2af027:chgrepo.zsh
-aurum://file:%TMPDIR%/test/aufilemapsrepo:41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1:crepo.zsh
+=aurum://file:%TMPDIR%/test/aufilemapsrepo:41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1:crepo.zsh
+*1: aurum://file:%TMPDIR%/test/aufilemapsrepo:41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1:crepo.zsh
+#2: aurum://file:%TMPDIR%/test/aufilemapsrepo:41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1:crepo.zsh
 aurum://diff:%TMPDIR%/test/aufilemapsrepo::41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1::
 aurum://diff:%TMPDIR%/test/aufilemapsrepo:41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1:fe851681c15eb282a18ab7660f85a677ee1e577c::
 ::: D
 endfunction
 let g:aurum_diffopts={'dates': 0}
 command -nargs=0 -bar WW :call s:WriteWindows()
+function s:WriteBuffers()
+    call WriteFile(map(filter(range(1, bufnr('$')), 'bufexists(v:val)'),
+                \      '"*="[v:val=='.bufnr('%').'].bufname(v:val)'))
+endfunction
+command -nargs=0 -bar WB :call s:WriteBuffers()
 let $HGRC=''
 let $HGRCPATH=''
 let $EMAIL='ZyX <kp-pav@yandex.ru>'
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.