Commits

ZyX_I committed 26d995a

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

  • Participants
  • Parent commits 658dc80

Comments (0)

Files changed (5)

File 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

File 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

File 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('%'))

File 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>'