>># 
>># 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: icnfywdw.m,v 1.11 92/06/11 17:29:36 rws Exp $
>># 
>>#
>>TITLE XIconifyWindow CH09
>>ASSERTION A XIconifyWindow-1
A call to XIconifyWindow sends a WM_CHANGE_STATE
ClientMessage event with a window of w, a format of 32 and
a first data element of IconicState to the root window of
the screen specified by the screen_number argument using an
event mask of SubstructureRedirectMask|
SubstructureNotifyMask and returns non-zero.
>>STRATEGY
Create a window using XCreateWindow.
Obtain the atom for the string "WM_CHANGE_STATE" using XInternAtom.
Select SubstructureNotify events on the root window with XSelectInput.
Generate an event on the root window using XIconifyWindow.
Verify that the call returned non-zero.
Verify that an event was generated with XNextEvent.
Verify that the event type was ClientMessage.
Verify that the event window was correct.
Verify that the event message_type was WM_CHANGE_STATE.
Verify that the event format was 32.
Verify that the first data element of the event structure was IconicState.

Select SubstructureRedirect events on the root window with XSelectInput.
Generate an event on the root window using XIconifyWindow.
Verify that the call returned non-zero.
Verify that an event was generated with XNextEvent.
Verify that the event type was ClientMessage.
Verify that the event window was correct.
Verify that the event message_type was WM_CHANGE_STATE.
Verify that the event format was 32.
Verify that the first data element of the event structure was IconicState.
>>ASSERTION B XIconifyWindow-2
When the atom name (lqWM_CHANGE_STATE(rq cannot be
interned, then a call to XIconifyWindow does not send a
message and returns zero.
>>STRATEGY
Report UNTESTED
>>ASSERTION B XIconifyWindow-3
When the ClientMessage event cannot be sent, then a call to
XIconifyWindow returns zero.
>>STRATEGY
Report UNTESTED
