Ver código fonte

update test60

Yegappan Lakshmanan 3 anos atrás
pai
commit
1b08b6be81
2 arquivos alterados com 3 adições e 2 exclusões
  1. 0 1
      test/run_mru_tests.sh
  2. 3 1
      test/unit_tests.vim

+ 0 - 1
test/run_mru_tests.sh

@@ -3,7 +3,6 @@
 # Script to run the unit-tests for the MRU Vim plugin
 
 VIMPRG=${VIMPRG:=/usr/bin/vim}
-#VIMPRG=/home/yega/Documents/vim/vim7.4/vim/src/vim
 VIM_CMD="$VIMPRG -N -u NONE -U NONE -i NONE --not-a-term"
 
 $VIM_CMD -S unit_tests.vim

+ 3 - 1
test/unit_tests.vim

@@ -1763,6 +1763,7 @@ func Test_60()
   let g:MRU_Use_Current_Window = 1
 
   edit file1.txt
+  let bnum = bufnr()
   only
   below split file2.txt
 
@@ -1770,11 +1771,12 @@ func Test_60()
   call search('file1.txt')
   exe "normal \<Enter>"
 
-  if winnr() == 2
+  if winnr() == 2 && winbufnr(1) == bnum && winbufnr(2) == bnum
     call LogResult(test_name, "pass")
   else
     call LogResult(test_name, "FAIL")
   endif
+  let g:MRU_Use_Current_Window = 0
 endfunc
 
 " ==========================================================================