tests/libcurses: fix spelling of the special call to DRAIN
This commit is contained in:
parent
82a08c1a4a
commit
e91849a6b1
|
@ -1,4 +1,4 @@
|
|||
$NetBSD: testframe.txt,v 1.7 2021/02/07 20:20:06 rillig Exp $
|
||||
$NetBSD: testframe.txt,v 1.8 2021/02/09 20:31:02 rillig Exp $
|
||||
|
||||
CURSES TESTFRAME
|
||||
----------------
|
||||
|
@ -261,8 +261,8 @@ of the operation can either be used as an argument for a call or can
|
|||
be used as an expected result for a call.
|
||||
|
||||
In addition to all the curses calls being supported by the slave,
|
||||
there is one more special call called "drain". This call repeatedly
|
||||
called wgetch(win) until there are no more characters in win. The call
|
||||
there is one more special call called "DRAIN". This call repeatedly
|
||||
calls wgetch(win) until there are no more characters in win. The call
|
||||
assumes that the curses input is either in no delay or timed input
|
||||
mode otherwise the test will time out and fail. This call can be used
|
||||
to clear any pending input when testing a timed read, to prevent the
|
||||
|
|
|
@ -10,8 +10,8 @@ input "b"
|
|||
# since delay is in effect and we set timeout the following getch should
|
||||
# return ERR not the character b.
|
||||
call -1 getch
|
||||
# drain input....
|
||||
call OK drain STDSCR
|
||||
# drain input ...
|
||||
call OK DRAIN STDSCR
|
||||
call OK timeout -1
|
||||
call OK keypad STDSCR 1
|
||||
delay 0
|
||||
|
|
|
@ -10,8 +10,8 @@ input "b"
|
|||
# since delay is in effect and we set timeout the following getch should
|
||||
# return ERR not the character b.
|
||||
call -1 wgetch $win1
|
||||
# drain input....
|
||||
call OK drain $win1
|
||||
# drain input ...
|
||||
call OK DRAIN $win1
|
||||
call OK wtimeout $win1 -1
|
||||
call OK keypad $win1 1
|
||||
delay 0
|
||||
|
|
Loading…
Reference in New Issue