From 51d6a607947365aa812dfbf68e72a2945848f6d6 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Wed, 1 Mar 2000 17:14:54 +0000 Subject: zsh-workers/9960 --- Test/53completion.ztst | 10 +++++----- Test/comptest | 18 ++++++++++++++---- 2 files changed, 19 insertions(+), 9 deletions(-) (limited to 'Test') diff --git a/Test/53completion.ztst b/Test/53completion.ztst index 00f1c9218..f91fe90a3 100644 --- a/Test/53completion.ztst +++ b/Test/53completion.ztst @@ -104,11 +104,11 @@ >DESCRIPTION:{desc1} >NO:{arg1} -# code='compdef _tst tst; _tst () { _arguments "-\+[opt]" }' -# comptest -c "$code" $'tst -\C-D' -#0:_arguments -#>DESCRIPTION:{option} -#>NO:{-+ -- opt} + code='compdef _tst tst; _tst () { _arguments "-\+[opt]" }' + comptest -c "$code" $'tst -\C-D' +0:_arguments +>DESCRIPTION:{option} +>NO:{-+ -- opt} code='compdef _tst tst; _tst () { _arguments "1:desc1:(arg1)" }' comptest -c "$code" $'tst \t' diff --git a/Test/comptest b/Test/comptest index e8f1ffef6..d9c3c40d0 100644 --- a/Test/comptest +++ b/Test/comptest @@ -54,6 +54,7 @@ list-choices-with-report () { } finish () { print "" + sleep 1 exit 0 } zle -N expand-or-complete-with-report @@ -68,14 +69,23 @@ End export PS1="" zpty zsh "$zsh" -f -zpty -r zsh log "**" +zpty -r zsh log1 "**" || { + print first prompt doesn\'t appered. + exit 1 +} zpty -w zsh ". $tmp" -zpty -r zsh log "**" +zpty -r zsh log2 "**" || { + print second prompt doesn\'t appered. + exit 1 +} rm $tmp -zpty -w zsh "$input"$'\C-Z' -zpty -r zsh log "**" +zpty -n -w zsh "$input"$'\C-Z' +zpty -r zsh log "**" || { + print finish widget doesn\'t invoked. + exit 1 +} if [[ -n "$debug" ]]; then print -lr - "$log" > /tmp/comptest.debug -- cgit 1.4.1