mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
vim-patch:8.1.0559: command line completion not sufficiently tested (#9310)
Problem: Command line completion not sufficiently tested.
Solution: Add more tests. (Dominique Pelle, closes vim/vim#3622)
b513d3079b
This commit is contained in:
@@ -297,6 +297,18 @@ func Test_argdelete()
|
|||||||
%argd
|
%argd
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
func Test_argdelete_completion()
|
||||||
|
args foo bar
|
||||||
|
|
||||||
|
call feedkeys(":argdelete \<C-A>\<C-B>\"\<CR>", 'tx')
|
||||||
|
call assert_equal('"argdelete bar foo', @:)
|
||||||
|
|
||||||
|
call feedkeys(":argdelete x \<C-A>\<C-B>\"\<CR>", 'tx')
|
||||||
|
call assert_equal('"argdelete x bar foo', @:)
|
||||||
|
|
||||||
|
%argd
|
||||||
|
endfunc
|
||||||
|
|
||||||
" Tests for the :next, :prev, :first, :last, :rewind commands
|
" Tests for the :next, :prev, :first, :last, :rewind commands
|
||||||
func Test_argpos()
|
func Test_argpos()
|
||||||
call Reset_arglist()
|
call Reset_arglist()
|
||||||
|
@@ -596,3 +596,7 @@ func Test_script_detection()
|
|||||||
filetype off
|
filetype off
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
func Test_setfiletype_completion()
|
||||||
|
call feedkeys(":setfiletype java\<C-A>\<C-B>\"\<CR>", 'tx')
|
||||||
|
call assert_equal('"setfiletype java javacc javascript', @:)
|
||||||
|
endfunc
|
||||||
|
@@ -104,3 +104,8 @@ function Test_Search_history_window()
|
|||||||
call assert_equal('a', @/)
|
call assert_equal('a', @/)
|
||||||
bwipe!
|
bwipe!
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
function Test_history_completion()
|
||||||
|
call feedkeys(":history \<C-A>\<C-B>\"\<CR>", 'tx')
|
||||||
|
call assert_equal('"history / : = > ? @ all cmd debug expr input search', @:)
|
||||||
|
endfunc
|
||||||
|
@@ -38,3 +38,8 @@ function Test_messages()
|
|||||||
let &more = oldmore
|
let &more = oldmore
|
||||||
endtry
|
endtry
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
func Test_message_completion()
|
||||||
|
call feedkeys(":message \<C-A>\<C-B>\"\<CR>", 'tx')
|
||||||
|
call assert_equal('"message clear', @:)
|
||||||
|
endfunc
|
||||||
|
@@ -114,6 +114,15 @@ func Test_syntime()
|
|||||||
bd
|
bd
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
func Test_syntime_completion()
|
||||||
|
if !has('profile')
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
|
||||||
|
call feedkeys(":syntime \<C-A>\<C-B>\"\<CR>", 'tx')
|
||||||
|
call assert_equal('"syntime clear off on report', @:)
|
||||||
|
endfunc
|
||||||
|
|
||||||
func Test_syntax_list()
|
func Test_syntax_list()
|
||||||
syntax on
|
syntax on
|
||||||
let a = execute('syntax list')
|
let a = execute('syntax list')
|
||||||
|
Reference in New Issue
Block a user