Mercurial > vim
comparison src/testdir/test_terminal.vim @ 15217:49bc670c3ee9 v8.1.0618
patch 8.1.0618: term_getjob() does not return v:null as documented
commit https://github.com/vim/vim/commit/528ccfbaa1cc805f430a750c551e5a9fd7eb54fe
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 21 20:55:22 2018 +0100
patch 8.1.0618: term_getjob() does not return v:null as documented
Problem: term_getjob() does not return v:null as documented.
Solution: Do return v:null. (Damien) Add a test.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 21 Dec 2018 21:00:06 +0100 |
parents | 2b15ee496cbd |
children | 42ce33efb23d |
comparison
equal
deleted
inserted
replaced
15216:0fd814a309db | 15217:49bc670c3ee9 |
---|---|
1712 call term_sendkeys(bufnr, ":quit\r") | 1712 call term_sendkeys(bufnr, ":quit\r") |
1713 call term_wait(bufnr) | 1713 call term_wait(bufnr) |
1714 call Stop_shell_in_terminal(bufnr) | 1714 call Stop_shell_in_terminal(bufnr) |
1715 exe bufnr . 'bwipe' | 1715 exe bufnr . 'bwipe' |
1716 endfunc | 1716 endfunc |
1717 | |
1718 func Test_terminal_no_job() | |
1719 let term = term_start('false', {'term_finish': 'close'}) | |
1720 call WaitForAssert({-> assert_equal(v:null, term_getjob(term)) }) | |
1721 endfunc |