Skip to content

Commit

Permalink
add regression tests for fd4feb0
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Nov 13, 2021
1 parent fd4feb0 commit 2e67899
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/all.vimspec
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,25 @@ Describe git-messenger.vim
GitMessenger
Assert IsNotNone(GetPopup())

" Add this check for fd4feb03edf3b0b659a3a0722e333ec312642daf
doautocmd CursorMoved
Assert IsNotNone(GetPopup())

normal! h
doautocmd CursorMoved

Assert IsNone(GetPopupNoWait())
End

It is not closed on CursorHold
" Test for fd4feb03edf3b0b659a3a0722e333ec312642daf
GitMessenger
Assert IsNotNone(GetPopup())

doautocmd CursorHold
Assert IsNotNone(GetPopup())
End

It is closed on BufEnter
GitMessenger
Assert IsNotNone(GetPopup())
Expand Down

0 comments on commit 2e67899

Please sign in to comment.