diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-07-09 16:25:16 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-09 16:25:16 +0800 |
| commit | 798acbca1bfe54d7050cad0189c93bfce5ec6965 (patch) | |
| tree | 5dcf0038576254949636c167a0ec5d30d5240903 /src/nvim/testdir/test_functions.vim | |
| parent | 45ba2e147f7b7d17acb489d64acc257ceded0887 (diff) | |
| parent | cf4aa6095f7908c9c427321a1c87bc119adc136a (diff) | |
| download | rneovim-798acbca1bfe54d7050cad0189c93bfce5ec6965.tar.gz rneovim-798acbca1bfe54d7050cad0189c93bfce5ec6965.tar.bz2 rneovim-798acbca1bfe54d7050cad0189c93bfce5ec6965.zip | |
Merge pull request #19284 from zeertzjq/vim-8.2.0274
vim-patch:8.2.{0274,0325}
Diffstat (limited to 'src/nvim/testdir/test_functions.vim')
| -rw-r--r-- | src/nvim/testdir/test_functions.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_functions.vim b/src/nvim/testdir/test_functions.vim index 2391b4a485..3feb4d5f7f 100644 --- a/src/nvim/testdir/test_functions.vim +++ b/src/nvim/testdir/test_functions.vim @@ -1218,6 +1218,16 @@ func Test_input_func() call assert_fails("call input('F:', '', [])", 'E730:') endfunc +" Test for the inputdialog() function +func Test_inputdialog() + CheckNotGui + + call feedkeys(":let v=inputdialog('Q:', 'xx', 'yy')\<CR>\<CR>", 'xt') + call assert_equal('xx', v) + call feedkeys(":let v=inputdialog('Q:', 'xx', 'yy')\<CR>\<Esc>", 'xt') + call assert_equal('yy', v) +endfunc + " Test for inputlist() func Test_inputlist() call feedkeys(":let c = inputlist(['Select color:', '1. red', '2. green', '3. blue'])\<cr>1\<cr>", 'tx') |