>># 
>># Copyright 1990, 1991 by the Massachusetts Institute of Technology and
>># UniSoft Group Limited.
>># 
>># Permission to use, copy, modify, distribute, and sell this software and
>># its documentation for any purpose is hereby granted without fee,
>># provided that the above copyright notice appear in all copies and that
>># both that copyright notice and this permission notice appear in
>># supporting documentation, and that the names of MIT and UniSoft not be
>># used in advertising or publicity pertaining to distribution of the
>># software without specific, written prior permission.  MIT and UniSoft
>># make no representations about the suitability of this software for any
>># purpose.  It is provided "as is" without express or implied warranty.
>># 
>># $XConsortium: pndng.m,v 1.12 92/06/11 17:24:06 rws Exp $
>># 
>>#
>>TITLE XPending CH08
>>ASSERTION A XPending-1
When the number of events already in the event queue is
non-zero, then a call to XPending returns the number of
events in the event queue.
>>STRATEGY
Discard all events on the event queue.
Call XPutBackEvent to put events on the event queue.
Call XPending.
Verify that XPending returned the correct number of events.
>>ASSERTION A XPending-2
When there are no events in the event queue, then a call to
XPending flushes the output buffer.
>>STRATEGY
Create client2.
Discard all events on the event queue.
Create pixmap.
Call XPending.
Empty the buffer.
Ensure the server has dealt with anything flushed to it: do XSync()
Verify that the output buffer was flushed by effect on server.
Verify that XPending returned the correct number of events.
>>ASSERTION A XPending-3
When there are no events in the event queue, then a call to
XPending attempts to read more events out of the client's
connection without blocking and returns the number read.
>>STRATEGY
Discard all events on the event queue.
Call XPending and verify that blocking did not occur.
Discard all events on the event queue.
