Add tests for prompt history behaviour
This commit is contained in:
parent
a88d80a432
commit
650c2aa3ae
1
test/prompt/history-abort-previous/cmd
Normal file
1
test/prompt/history-abort-previous/cmd
Normal file
|
@ -0,0 +1 @@
|
||||||
|
|
1
test/prompt/history-abort-previous/out
Normal file
1
test/prompt/history-abort-previous/out
Normal file
|
@ -0,0 +1 @@
|
||||||
|
bazbarfoob
|
1
test/prompt/history-abort-previous/rc
Normal file
1
test/prompt/history-abort-previous/rc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
define-command append -params 1 %{ set-register dquote %arg{1}; execute-keys A<c-r>"<esc> }
|
2
test/prompt/history-abort-previous/script
Normal file
2
test/prompt/history-abort-previous/script
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
ui_out -ignore 4
|
||||||
|
ui_in '{ "jsonrpc": "2.0", "method": "keys", "params": [ ":append baz<ret>:append bar<ret>:append foo<ret>:append b<c-p><c-n><ret>" ] }'
|
1
test/prompt/history-navigate/cmd
Normal file
1
test/prompt/history-navigate/cmd
Normal file
|
@ -0,0 +1 @@
|
||||||
|
|
1
test/prompt/history-navigate/out
Normal file
1
test/prompt/history-navigate/out
Normal file
|
@ -0,0 +1 @@
|
||||||
|
foobarbazbar
|
1
test/prompt/history-navigate/rc
Normal file
1
test/prompt/history-navigate/rc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
define-command append -params 1 %{ set-register dquote %arg{1}; execute-keys A<c-r>"<esc> }
|
2
test/prompt/history-navigate/script
Normal file
2
test/prompt/history-navigate/script
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
ui_out -ignore 4
|
||||||
|
ui_in '{ "jsonrpc": "2.0", "method": "keys", "params": [ ":append foo<ret>:append bar<ret>:append baz<ret>:<c-p><c-p><c-p><c-n><c-n><c-p><ret>" ] }'
|
1
test/prompt/history-previous-prefix/cmd
Normal file
1
test/prompt/history-previous-prefix/cmd
Normal file
|
@ -0,0 +1 @@
|
||||||
|
|
1
test/prompt/history-previous-prefix/out
Normal file
1
test/prompt/history-previous-prefix/out
Normal file
|
@ -0,0 +1 @@
|
||||||
|
bazbarfoobar
|
1
test/prompt/history-previous-prefix/rc
Normal file
1
test/prompt/history-previous-prefix/rc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
define-command append -params 1 %{ set-register dquote %arg{1}; execute-keys A<c-r>"<esc> }
|
2
test/prompt/history-previous-prefix/script
Normal file
2
test/prompt/history-previous-prefix/script
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
ui_out -ignore 4
|
||||||
|
ui_in '{ "jsonrpc": "2.0", "method": "keys", "params": [ ":append baz<ret>:append bar<ret>:append foo<ret>:append b<c-p><ret>" ] }'
|
1
test/prompt/history-previous/cmd
Normal file
1
test/prompt/history-previous/cmd
Normal file
|
@ -0,0 +1 @@
|
||||||
|
|
1
test/prompt/history-previous/out
Normal file
1
test/prompt/history-previous/out
Normal file
|
@ -0,0 +1 @@
|
||||||
|
foobarbazbar
|
1
test/prompt/history-previous/rc
Normal file
1
test/prompt/history-previous/rc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
define-command append -params 1 %{ set-register dquote %arg{1}; execute-keys A<c-r>"<esc> }
|
2
test/prompt/history-previous/script
Normal file
2
test/prompt/history-previous/script
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
ui_out -ignore 4
|
||||||
|
ui_in '{ "jsonrpc": "2.0", "method": "keys", "params": [ ":append foo<ret>:append bar<ret>:append baz<ret>:<c-p><c-p><c-p><c-n><ret>" ] }'
|
1
test/prompt/history-repeat-last/cmd
Normal file
1
test/prompt/history-repeat-last/cmd
Normal file
|
@ -0,0 +1 @@
|
||||||
|
|
1
test/prompt/history-repeat-last/out
Normal file
1
test/prompt/history-repeat-last/out
Normal file
|
@ -0,0 +1 @@
|
||||||
|
foofoo
|
1
test/prompt/history-repeat-last/rc
Normal file
1
test/prompt/history-repeat-last/rc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
define-command test %{ execute-keys Afoo<esc> }
|
2
test/prompt/history-repeat-last/script
Normal file
2
test/prompt/history-repeat-last/script
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
ui_out -ignore 4
|
||||||
|
ui_in '{ "jsonrpc": "2.0", "method": "keys", "params": [ ":test<ret>:<ret>" ] }'
|
1
test/prompt/history-stop-at-first/cmd
Normal file
1
test/prompt/history-stop-at-first/cmd
Normal file
|
@ -0,0 +1 @@
|
||||||
|
|
1
test/prompt/history-stop-at-first/out
Normal file
1
test/prompt/history-stop-at-first/out
Normal file
|
@ -0,0 +1 @@
|
||||||
|
foobarfoo
|
1
test/prompt/history-stop-at-first/rc
Normal file
1
test/prompt/history-stop-at-first/rc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
define-command append -params 1 %{ set-register dquote %arg{1}; execute-keys A<c-r>"<esc> }
|
2
test/prompt/history-stop-at-first/script
Normal file
2
test/prompt/history-stop-at-first/script
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
ui_out -ignore 4
|
||||||
|
ui_in '{ "jsonrpc": "2.0", "method": "keys", "params": [ ":append foo<ret>:append bar<ret>:<c-p><c-p><c-p><ret>" ] }'
|
Loading…
Reference in New Issue
Block a user