>># 
>># 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: mskevnt.m,v 1.9 92/06/11 17:23:17 rws Exp $
>># 
>>#
>>TITLE XMaskEvent CH08
>>ASSERTION A XMaskEvent-1
A call to XMaskEvent returns in event_return the first
event in the event queue matching event_mask.
>>STRATEGY
Discard all events on the event queue.
Call XPutBackEvent to put events on the event queue.
Call XMaskEvent.
Verify the correct event-type was returned.
Verify the first matching event in event queue was returned.
>>ASSERTION A XMaskEvent-2
A call to XMaskEvent 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 XMaskEvent.
Call XPending to get the current event queue size.
Verify that size of event queue has decreased by one.
>>ASSERTION A XMaskEvent-3
When a matching event is not in the event queue, then a
call to XMaskEvent flushes the output buffer and blocks
until one is received.
>>STRATEGY
Create client2.
Discard all events on the event queue.
Create pixmap.
Create a window.
Call XMaskEvent and verify that blocking did occur.
Verify that the output buffer was flushed.
Verify the correct event-type was returned.
