summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_terminal.vim
diff options
context:
space:
mode:
Diffstat (limited to 'src/testdir/test_terminal.vim')
-rw-r--r--src/testdir/test_terminal.vim10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/testdir/test_terminal.vim b/src/testdir/test_terminal.vim
index f5b99bcc88..ece8120d58 100644
--- a/src/testdir/test_terminal.vim
+++ b/src/testdir/test_terminal.vim
@@ -41,6 +41,16 @@ func Test_terminal_basic()
unlet g:job
endfunc
+func Test_terminal_no_name()
+ let buf = Run_shell_in_terminal({})
+ call assert_match('^!', bufname(buf))
+ 0file
+ call assert_equal("", bufname(buf))
+ call assert_match('\[No Name\]', execute('file'))
+ call StopShellInTerminal(buf)
+ call TermWait(buf)
+endfunc
+
func Test_terminal_TerminalWinOpen()
au TerminalWinOpen * let b:done = 'yes'
let buf = Run_shell_in_terminal({})