>># 
>># 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: chcktypdev.m,v 1.8 92/06/11 17:18:47 rws Exp $
>># 
>>#
>>TITLE XCheckTypedEvent CH08
>>ASSERTION A XCheckTypedEvent-1
A call to XCheckTypedEvent returns in event_return the
first event in the event queue that matches event_type.
>>STRATEGY
Discard all events on the event queue.
Call XPutBackEvent to put events on the event queue.
Call XCheckTypedEvent.
Verify that XCheckTypedEvent returned True.
Verify the correct event-type was returned.
Verify the first matching event in event queue was returned.
>>ASSERTION - XCheckTypedEvent-2
When a call to XCheckTypedEvent finds a matching event,
then XCheckTypedEvent returns True.
>>ASSERTION A XCheckTypedEvent-3
A call to XCheckTypedEvent removes the returned event from
the event queue.
>>STRATEGY
Discard all events on the event queue.
Call XPutBackEvent to put events on the event queue.
Call XPending to get the current event queue size.
Call XCheckTypedEvent.
Call XPending to get the current event queue size.
Verify that size of event queue has decreased by one.
>>ASSERTION - XCheckTypedEvent-4
When the event queue does not contain a matching event,
then a call to XCheckTypedEvent returns in event_return the
first matching event available on the X server connection.
>>ASSERTION A XCheckTypedEvent-5
When a matching event is not in the event queue and is not
available on the X server connection, then a call to
XCheckTypedEvent returns False.
>>STRATEGY
Discard all events on the event queue.
Call XCheckTypedEvent.
Verify that XCheckTypedEvent returned False.
>>ASSERTION A XCheckTypedEvent-6
When a matching event is not in the event queue and is not
available on the X server connection, then a call to
XCheckTypedEvent flushes the output buffer.
>>STRATEGY
Create client2.
Discard all events on the event queue.
Create pixmap.
Call XCheckTypedEvent.
Verify that XCheckTypedEvent returned False.
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.
